From 7c44dc64bc10a83c0e21e5b54d7762d2f4ed2e6c Mon Sep 17 00:00:00 2001 From: Hamza Tatheer <> Date: Wed, 16 Nov 2022 15:48:45 +0500 Subject: [PATCH] Update viewer.js --- src/viewer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/viewer.js b/src/viewer.js index 10cf5240..d963bf14 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -215,7 +215,6 @@ $.Viewer = function( options ) { onfullscreenchange: null, lastClickTime: null, draggingToZoom: false, - dblClickTimeThreshold: 1000 }; this._sequenceIndex = 0; @@ -3201,7 +3200,6 @@ function onCanvasPress( event ) { gestureSettings = this.gestureSettingsByDeviceType( event.pointerType ); if ( gestureSettings.dblClickDragToZoom ){ - var dblClickTimeThreshold = THIS[ this.hash ].dblClickTimeThreshold; var lastClickTime = THIS[ this.hash ].lastClickTime; var currClickTime = $.now(); @@ -3209,7 +3207,7 @@ function onCanvasPress( event ) { return; } - if ((currClickTime - lastClickTime) < dblClickTimeThreshold) { + if ((currClickTime - lastClickTime) < this.dblClickTimeThreshold) { THIS[ this.hash ].draggingToZoom = true; }