-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Description
There are several differences between the API that TrackballControls provides vs what OrbitControls provides. Here's a few:
enableDampingvsstaticMoving(which are the same thing, just opposites)enableZoomvsnoZoomenablePanvsnoPanenableRotatevsnoRotatezoomSpeeddefaulting to1.0vs1.2- OrbitControls supports
autoRotateandzoomToCursorwhile TrackballControls supports neither, but it could! dampingFactorvsdynamicDampingFactor.keysbeing an object in one, an array in the other.touchesallowing you to configure touch support, but only for OrbitControls. It's missing on TrackballControls
Solution
I would like to see the API of TrackballControls change to conform better with the API of OrbitControls.
Alternatives
Create a new API and modify both OrbitControls and TrackballControls to match that new API. This seems worse than just modifying one, and OrbitControls seems much more popular.
Additional context
TrackballControls has known issues with touch support:
#25977
TrackballControls has known issues with reconfiguring the mouse button mapping:
#26366