-
-
Notifications
You must be signed in to change notification settings - Fork 35.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TrackballControls should have an API that more closely matches OrbitControls #27399
Comments
Archaeological dig report:
It seems like there is appetite to fix this mismatch! I think that there are a few ways to resolve it:
If this summary is correct and complete, then option 3 seems to be only path forward, in which case #17842 is probably a good jumping off point. Have I missed any other options? Before I dive in and code anything, can I get a go-ahead that option 3 really is best option we've got? Or equally good, a different suggested direction? Cheers, |
There is an existing issue for this topic: #18496 Closing as a duplicate. |
Description
There are several differences between the API that TrackballControls provides vs what OrbitControls provides. Here's a few:
enableDamping
vsstaticMoving
(which are the same thing, just opposites)enableZoom
vsnoZoom
enablePan
vsnoPan
enableRotate
vsnoRotate
zoomSpeed
defaulting to1.0
vs1.2
autoRotate
andzoomToCursor
while TrackballControls supports neither, but it could!dampingFactor
vsdynamicDampingFactor
.keys
being an object in one, an array in the other.touches
allowing you to configure touch support, but only for OrbitControls. It's missing on TrackballControlsSolution
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
The text was updated successfully, but these errors were encountered: