mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
fix dragToPan when flickEnabled is activated #2463
This commit is contained in:
parent
f9a8b97cf9
commit
e08274e2b0
@ -3236,6 +3236,7 @@ function onCanvasDragEnd( event ) {
|
|||||||
|
|
||||||
if (!canvasDragEndEventArgs.preventDefaultAction && this.viewport) {
|
if (!canvasDragEndEventArgs.preventDefaultAction && this.viewport) {
|
||||||
if ( !THIS[ this.hash ].draggingToZoom &&
|
if ( !THIS[ this.hash ].draggingToZoom &&
|
||||||
|
gestureSettings.dragToPan &&
|
||||||
gestureSettings.flickEnabled &&
|
gestureSettings.flickEnabled &&
|
||||||
event.speed >= gestureSettings.flickMinSpeed) {
|
event.speed >= gestureSettings.flickMinSpeed) {
|
||||||
var amplitudeX = 0;
|
var amplitudeX = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user