yomotsu / camera-controls

A camera control for three.js, similar to THREE.OrbitControls yet supports smooth transitions and more features.

Home Page:https://yomotsu.github.io/camera-controls/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

SrinivasPrabhu794 opened this issue · comments

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

Hi,
This was a false positive. Closing.