mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Triple Click Bug Fix
This commit is contained in:
parent
3ebc03ab3a
commit
e4d9dcdd03
@ -2912,10 +2912,17 @@ function onCanvasClick( event ) {
|
||||
this.viewport.applyConstraints();
|
||||
}
|
||||
|
||||
if( gestureSettings.dblClickDragToZoom ) {
|
||||
if( gestureSettings.dblClickDragToZoom){
|
||||
if(THIS[ this.hash ].draggingToZoom === true){
|
||||
THIS[ this.hash ].lastClickTime = null;
|
||||
THIS[ this.hash ].draggingToZoom = false;
|
||||
}
|
||||
else{
|
||||
THIS[ this.hash ].lastClickTime = $.now();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function onCanvasDblClick( event ) {
|
||||
@ -3211,9 +3218,6 @@ function onCanvasPress( event ) {
|
||||
}
|
||||
|
||||
function onCanvasRelease( event ) {
|
||||
|
||||
var gestureSettings;
|
||||
|
||||
/**
|
||||
* Raised when the primary mouse button is released or touch ends on the {@link OpenSeadragon.Viewer#canvas} element.
|
||||
*
|
||||
@ -3237,12 +3241,6 @@ function onCanvasRelease( event ) {
|
||||
insideElementReleased: event.insideElementReleased,
|
||||
originalEvent: event.originalEvent
|
||||
});
|
||||
|
||||
|
||||
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
||||
if( gestureSettings.dblClickDragToZoom && THIS[ this.hash ].draggingToZoom === true ){
|
||||
THIS[ this.hash ].draggingToZoom = false;
|
||||
}
|
||||
}
|
||||
|
||||
function onCanvasNonPrimaryPress( event ) {
|
||||
|
Loading…
Reference in New Issue
Block a user