This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
pannellum
mirror of
https://github.com/mpetroff/pannellum.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
22
Wiki
Activity
Browse Source
Stop motion on scene changes (only affects API-initiated changes).
pull/189/head
Matthew Petroff
8 years ago
parent
234201ea41
commit
6cf5532ba1
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
src/js/pannellum.js
+ 4
- 1
src/js/pannellum.js
View File
@@ -1865,7 +1865,10 @@ function loadScene(sceneId, targetPitch, targetYaw, targetHfov, fadeDone) {
// Create the new config for the scene
mergeConfig(sceneId);
// Stop motion
yawSpeed = pitchSpeed = zoomSpeed = 0;
// Reload scene
processOptions();
if (workingPitch !== undefined) {
Write
Preview
Loading…
Cancel
Save