mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.16k stars 711 forks source link

Event listening for rotation start/stop #1107

Open rbsam176 opened 1 year ago

rbsam176 commented 1 year ago

I've made my own button that toggles the rotation to either start or stop, I've also included a mutation observer that checks if the pano is being dragged so it knows to set the custom rotation button to a state that represents that rotation is off (because dragging the pano stops it rotating). However there are some edges cases that stop it from rotating, like keyboard hits for example - is it possible to have an event included that fires when rotation is started/stopped?