mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-01 21:06:12 +03:00
Added code to swallow the canvas-scroll event if we are swallowing it because of time.
This commit is contained in:
parent
40edbd7a1c
commit
3214494dc9
1 changed files with 6 additions and 4 deletions
|
@ -2783,11 +2783,13 @@ function onCanvasScroll( event ) {
|
|||
shift: event.shift,
|
||||
originalEvent: event.originalEvent
|
||||
});
|
||||
if (gestureSettings && gestureSettings.scrollToZoom) {
|
||||
//cancels event
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (gestureSettings && gestureSettings.scrollToZoom) {
|
||||
//cancels event
|
||||
return false;
|
||||
else {
|
||||
return false; // We are swallowing this event
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue