mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-31 23:21:42 +03:00
zoom infinite
This commit is contained in:
parent
e12a626efb
commit
2f28970e32
@ -2993,9 +2993,9 @@ 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 / 50 );
|
||||
this.viewport.zoomBy(factor);
|
||||
this.viewport.applyConstraints();
|
||||
// this.viewport.applyConstraints();
|
||||
}
|
||||
|
||||
if (gestureSettings.dragToPan && !THIS[ this.hash ].draggingToZoom && !canvasDragEventArgs.preventDefaultAction && this.viewport ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user