Browse Source

Stop motion on scene changes (only affects API-initiated changes).

pull/189/head
Matthew Petroff 8 years ago
parent
commit
6cf5532ba1
1 changed files with 4 additions and 1 deletions
  1. +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) {


Loading…
Cancel
Save