mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 23:03:13 +03:00
Update viewer.js
This commit is contained in:
parent
6540a57aa9
commit
7c44dc64bc
@ -215,7 +215,6 @@ $.Viewer = function( options ) {
|
|||||||
onfullscreenchange: null,
|
onfullscreenchange: null,
|
||||||
lastClickTime: null,
|
lastClickTime: null,
|
||||||
draggingToZoom: false,
|
draggingToZoom: false,
|
||||||
dblClickTimeThreshold: 1000
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this._sequenceIndex = 0;
|
this._sequenceIndex = 0;
|
||||||
@ -3201,7 +3200,6 @@ function onCanvasPress( event ) {
|
|||||||
|
|
||||||
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
||||||
if ( gestureSettings.dblClickDragToZoom ){
|
if ( gestureSettings.dblClickDragToZoom ){
|
||||||
var dblClickTimeThreshold = THIS[ this.hash ].dblClickTimeThreshold;
|
|
||||||
var lastClickTime = THIS[ this.hash ].lastClickTime;
|
var lastClickTime = THIS[ this.hash ].lastClickTime;
|
||||||
var currClickTime = $.now();
|
var currClickTime = $.now();
|
||||||
|
|
||||||
@ -3209,7 +3207,7 @@ function onCanvasPress( event ) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((currClickTime - lastClickTime) < dblClickTimeThreshold) {
|
if ((currClickTime - lastClickTime) < this.dblClickTimeThreshold) {
|
||||||
THIS[ this.hash ].draggingToZoom = true;
|
THIS[ this.hash ].draggingToZoom = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user