mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
Remember to initialize new properties! Code cleanup...
This commit is contained in:
parent
84c23c3729
commit
033c16ca85
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user