|
@@ -446,6 +446,13 @@ function init() { |
|
|
if (config.draggable) |
|
|
if (config.draggable) |
|
|
uiContainer.classList.add('pnlm-grab'); |
|
|
uiContainer.classList.add('pnlm-grab'); |
|
|
uiContainer.classList.remove('pnlm-grabbing'); |
|
|
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); |
|
|
fireEvent('scenechange', sceneId); |
|
|
load(); |
|
|
load(); |
|
|
|
|
|
|
|
|
// Properly handle switching to dynamic scenes |
|
|
|
|
|
update = config.dynamicUpdate === true; |
|
|
|
|
|
if (config.dynamic) { |
|
|
|
|
|
panoImage = config.panorama; |
|
|
|
|
|
onImageLoad(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|