vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.97k stars 293 forks source link

Drag event #172

Open levelsio opened 10 months ago

levelsio commented 10 months ago

It would be very useful if the globe had a "drag" event.

Right now I am hacking the globe's onZoom event which seems to trigger every time I drag the globe.

Thanks!

vasturiano commented 10 months ago

@levelsio if it's more convenient you can also subscribe to changes to the orbit controls.

myGlobe.controls().addEventListener('change', /* your handler */);