Remember to initialize new properties! Code cleanup...

This commit is contained in:
Mark Salsbery 2021-03-16 11:27:48 -07:00
parent 84c23c3729
commit 033c16ca85
2 changed files with 8 additions and 8 deletions

View File

@ -232,14 +232,10 @@ $.Navigator = function( options ){
releaseHandler: $.delegate( this, onCanvasRelease ),
scrollHandler: $.delegate( this, onCanvasScroll ),
preProcessEventHandler: function (eventInfo) {
switch (eventInfo.eventType) {
case 'wheel':
if (eventInfo.eventType === 'wheel') {
//don't scroll the page up and down if the user is scrolling
//in the navigator
eventInfo.preventDefault = true;
break;
default:
break;
}
}
});

View File

@ -1144,6 +1144,7 @@ function OpenSeadragon( options ){
springStiffness: 6.5,
animationTime: 1.2,
gestureSettingsMouse: {
dragToPan: true,
scrollToZoom: true,
clickToZoom: true,
dblClickToZoom: false,
@ -1155,6 +1156,7 @@ function OpenSeadragon( options ){
pinchRotate: false
},
gestureSettingsTouch: {
dragToPan: true,
scrollToZoom: false,
clickToZoom: false,
dblClickToZoom: true,
@ -1166,6 +1168,7 @@ function OpenSeadragon( options ){
pinchRotate: false
},
gestureSettingsPen: {
dragToPan: true,
scrollToZoom: false,
clickToZoom: true,
dblClickToZoom: false,
@ -1177,6 +1180,7 @@ function OpenSeadragon( options ){
pinchRotate: false
},
gestureSettingsUnknown: {
dragToPan: true,
scrollToZoom: false,
clickToZoom: false,
dblClickToZoom: true,