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 ), releaseHandler: $.delegate( this, onCanvasRelease ),
scrollHandler: $.delegate( this, onCanvasScroll ), scrollHandler: $.delegate( this, onCanvasScroll ),
preProcessEventHandler: function (eventInfo) { preProcessEventHandler: function (eventInfo) {
switch (eventInfo.eventType) { if (eventInfo.eventType === 'wheel') {
case 'wheel': //don't scroll the page up and down if the user is scrolling
//don't scroll the page up and down if the user is scrolling //in the navigator
//in the navigator eventInfo.preventDefault = true;
eventInfo.preventDefault = true;
break;
default:
break;
} }
} }
}); });

View File

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