Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Stop animation on detached #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions google-streetview-pano.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,14 @@
this.pano.setPov(pov);
},

/**
* Stop the animation when the element is detached
* @method detached
*/
detached: function () {
this.stop();
},

/**
* Cancel the slow panning animation.
* @method stop
Expand Down