|
|
@@ -446,6 +446,13 @@ function init() { |
|
|
|
if (config.draggable) |
|
|
|
uiContainer.classList.add('pnlm-grab'); |
|
|
|
uiContainer.classList.remove('pnlm-grabbing'); |
|
|
|
|
|
|
|
// Properly handle switching to dynamic scenes |
|
|
|
update = config.dynamicUpdate === true; |
|
|
|
if (config.dynamic) { |
|
|
|
panoImage = config.panorama; |
|
|
|
onImageLoad(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -2293,13 +2300,6 @@ function loadScene(sceneId, targetPitch, targetYaw, targetHfov, fadeDone) { |
|
|
|
} |
|
|
|
fireEvent('scenechange', sceneId); |
|
|
|
load(); |
|
|
|
|
|
|
|
// Properly handle switching to dynamic scenes |
|
|
|
update = config.dynamicUpdate === true; |
|
|
|
if (config.dynamic) { |
|
|
|
panoImage = config.panorama; |
|
|
|
onImageLoad(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|