JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
854 stars 952 forks source link

how to get the state if it's in autoRotate? #79

Closed drunksword closed 6 years ago

drunksword commented 6 years ago

toggleAutorotate will switch the state of autorotate. But the state is unkunow before and after that(Considering that touch the screen can stop autorotate) .

drunksword commented 6 years ago

touch event can stop autorotate, but can't start it. then i can keep the state change. That's my solution.