Open BenPav opened 3 years ago
@BenPav you can do it all with the Threejs controls.
Calling .controls()
will give you access to the three orbit controls.
From there you can disable the interaction by setting enabled = false
. And set auto rotation with autoRotate = true
.
How do you disable zoom but not pan?
@vasturiano how user can scroll the page on mobile with touching globe when enablePan & enableRotate are true? my problem is that user can not scroll my page when touch the globe.(can only rotate or zoom)
@mmyyaghoubi you can either leave some horizontal space on the side of the globe for the user to scroll down the page, or you can disable rotation interactions on the globe.
Is there a way to disable zooming? I see something about three.js controls, and I've tried that but it does nothing and the mousewheel still zooms. Also, is there a way to set an animation where the globe spins slowly on it's own? Thanks!