google-streetview-pano
google-streetview-pano copied to clipboard
Stop animation on detached
Otherwise the animation callbacks will get top level elements into endless attached/detached loops.
Actually, this is still not enough to stop streetview pano events from spawning and destroying parent elements. I'm looking into this further.
Here is a screenshot showing what happens in the dom when the browser tab is active and this element creates and destroys yp-group in an endless loop.
Good news! I was having some bower issues and was actually not running this latest code. This PR does fully resolve the problem so it should be good to go.