|
@@ -70,7 +70,8 @@ var defaultConfig = { |
|
|
type: 'equirectangular', |
|
|
type: 'equirectangular', |
|
|
northOffset: 0, |
|
|
northOffset: 0, |
|
|
showFullscreenCtrl: true, |
|
|
showFullscreenCtrl: true, |
|
|
video: false |
|
|
|
|
|
|
|
|
video: false, |
|
|
|
|
|
keyboardZoom: true |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
container.className += ' container'; |
|
|
container.className += ' container'; |
|
@@ -742,12 +743,12 @@ function keyRepeat() { |
|
|
diff = Math.min(diff, 1.0); |
|
|
diff = Math.min(diff, 1.0); |
|
|
|
|
|
|
|
|
// If minus key is down |
|
|
// If minus key is down |
|
|
if (keysDown[0]) { |
|
|
|
|
|
|
|
|
if (keysDown[0] && config.keyboardZoom == true) { |
|
|
setHfov(config.hfov + (zoomSpeed * 0.8 + 0.5) * diff); |
|
|
setHfov(config.hfov + (zoomSpeed * 0.8 + 0.5) * diff); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// If plus key is down |
|
|
// If plus key is down |
|
|
if (keysDown[1]) { |
|
|
|
|
|
|
|
|
if (keysDown[1] && config.keyboardZoom == true) { |
|
|
setHfov(config.hfov + (zoomSpeed * 0.8 - 0.2) * diff); |
|
|
setHfov(config.hfov + (zoomSpeed * 0.8 - 0.2) * diff); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -1309,7 +1310,7 @@ function processOptions() { |
|
|
controls.zoom.style.display = 'none'; |
|
|
controls.zoom.style.display = 'none'; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case 'showFullscreenCtrl': |
|
|
case 'showFullscreenCtrl': |
|
|
if (config[key] && ('fullscreen' in document || 'mozFullScreen' in document || |
|
|
if (config[key] && ('fullscreen' in document || 'mozFullScreen' in document || |
|
|
'webkitIsFullScreen' in document || 'msFullscreenElement' in document)) { |
|
|
'webkitIsFullScreen' in document || 'msFullscreenElement' in document)) { |
|
|