mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
zoom equation updated
This commit is contained in:
parent
cd9c5032f8
commit
41a07b2250
@ -1242,7 +1242,7 @@ function OpenSeadragon( options ){
|
||||
},
|
||||
zoomPerClick: 2,
|
||||
zoomPerScroll: 1.2,
|
||||
zoomPerDblTapDrag: 10000000000000000000000,
|
||||
zoomPerDblTapDrag: 1.2,
|
||||
zoomPerSecond: 1.0,
|
||||
blendTime: 0,
|
||||
alwaysBlend: false,
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user