diff --git a/src/openseadragon.js b/src/openseadragon.js index ef8507cf..c778389d 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -1242,7 +1242,7 @@ function OpenSeadragon( options ){ }, zoomPerClick: 2, zoomPerScroll: 1.2, - zoomPerDblTapDrag: 10000000000000000000000, + zoomPerDblTapDrag: 1.2, zoomPerSecond: 1.0, blendTime: 0, alwaysBlend: false, diff --git a/src/viewer.js b/src/viewer.js index c68ea507..639bbb73 100644 --- a/src/viewer.js +++ b/src/viewer.js @@ -2993,7 +2993,7 @@ function onCanvasDrag( event ) { gestureSettings = this.gestureSettingsByDeviceType( event.pointerType ); if (gestureSettings.dblClickToZoom && THIS[ this.hash ].draggingToZoom){ - var factor = Math.pow( this.zoomPerDblTapDrag, event.delta.y ); + var factor = Math.pow( this.zoomPerDblTapDrag, event.delta.y / 100 ); this.viewport.zoomBy(factor); this.viewport.applyConstraints(); }