mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-21 20:56:09 +03:00
Merge pull request #2464 from jonasengelmann/fix/touch-gesture-dragToPan
Fix dragToPan when flickEnabled is activated
This commit is contained in:
commit
2e0868023a
@ -3232,10 +3232,11 @@ function onCanvasDragEnd( event ) {
|
|||||||
*/
|
*/
|
||||||
this.raiseEvent('canvas-drag-end', canvasDragEndEventArgs);
|
this.raiseEvent('canvas-drag-end', canvasDragEndEventArgs);
|
||||||
|
|
||||||
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
||||||
|
|
||||||
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