Closed moose96 closed 2 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit b26042d816a77dbb86c32f5f9dff624e281e9170:
Sandbox | Source |
---|---|
example | Configuration |
Incredible find and breakdown. This might also help #3315.
Fixes issue related to
@react-three/drei
repository: #2067.Analysis and explanation
The problem exists in
handleTouchMoveDolly
method ofOrbitControls
class inthree-stdlib
.dollyDelta.y
value isNaN
, becausedollyStart.y
anddollyEnd.y
indollyEnd.y / dollyStart.y
are 0. It happens because ofgetSecondPointerPosition
function which usesevent.pointerId
to identify pointers in arrays. Becauseevent.pointerId
is missing the method always returns the same pointer position, giving zero in the next calculations.Please also look at
removePointer
andtrackPointer
methods above - they useevent.pointerId
as well.