zoom equation updated

This commit is contained in:
Hamza Tatheer 2022-10-22 15:47:12 +05:00
parent cd9c5032f8
commit 41a07b2250
2 changed files with 2 additions and 2 deletions

View File

@ -1242,7 +1242,7 @@ function OpenSeadragon( options ){
},
zoomPerClick: 2,
zoomPerScroll: 1.2,
zoomPerDblTapDrag: 10000000000000000000000,
zoomPerDblTapDrag: 1.2,
zoomPerSecond: 1.0,
blendTime: 0,
alwaysBlend: false,

View File

@ -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();
}