yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.
https://yomotsu.github.io/camera-controls/
MIT License
1.89k stars 241 forks source link

moveTo function in orthographic mode has inconsistent behaviour on mobile devices/ipad #473

Closed SrinivasPrabhu794 closed 6 months ago

SrinivasPrabhu794 commented 6 months ago

Describe the bug

When I use the moveTo function in orthographic camera mode on my desktop it works fine and the camera points exactly where it should.

But when I do the same on mobile devices the behaviour is inconsistent. Especially after panning a bit, there seems to be an offset that keeps getting added and the moveTo function moves the camera by some offset to a different location.

This has been tested both on Android and iPad 9th gen.

To Reproduce

Steps to reproduce the behaviour:

Launch the "orthographic" camera example on a mobile device/iPad click on moveTo(3, 5 , 2) It should now move + set target exactly at (3, 5, 2) Pan the scene a bit. (don't rotate) click on moveTo(3, 5 , 2) again There is a certain offset now where the camera is pointing to/moved Pan the scene a bit extensively click on moveTo(3, 5 , 2) again The offset now should be a lot more now from how it was initially.

Code

No response

Live example

No response

Expected behavior

Should move the camera to the exact point every time in the orthographic mode on mobile devices without offsets.

Screenshots or Video

No response

Device

Mobile

OS

Android, iOS

Browser

Chrome, Safari

SrinivasPrabhu794 commented 6 months ago

Hi, This was a false positive. Closing.