You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Touch the canvas with your finger (still keeping the mouse button down)
This is triggered:
OrbitControls.js:932 Uncaught TypeError: Cannot read properties of undefined (reading 'x')
at OrbitControls._handleTouchStartDolly (OrbitControls.js:932:37)
at OrbitControls._handleTouchStartDollyPan (OrbitControls.js:943:31)
at OrbitControls.onTouchStart (OrbitControls.js:1428:11)
at OrbitControls.onPointerDown (OrbitControls.js:1172:8)
Suggested solution:
OrbitControls seems to maintain pointers array using onPointerDown and other pointer events, but maintains pointerPositions using only touch events. Not all pointer events are touch events, so those two arrays are not in sync, and that is why getSecondPointerPosition returns undefined.
The text was updated successfully, but these errors were encountered:
three
version: v174Problem description:
This is triggered:
Suggested solution:
OrbitControls seems to maintain
pointers
array usingonPointerDown
and other pointer events, but maintainspointerPositions
using only touch events. Not all pointer events are touch events, so those two arrays are not in sync, and that is whygetSecondPointerPosition
returns undefined.The text was updated successfully, but these errors were encountered: