mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Call Viewport.applyConstraints() on drag-end when flick gesture is enabled
This commit is contained in:
parent
ee3ab70025
commit
1d5b059fcc
@ -2388,8 +2388,8 @@ function onCanvasDragEnd( event ) {
|
||||
target.y = center.y;
|
||||
}
|
||||
this.viewport.panTo( target, false );
|
||||
this.viewport.applyConstraints();
|
||||
}
|
||||
this.viewport.applyConstraints();
|
||||
}
|
||||
/**
|
||||
* Raised when a mouse or touch drag operation ends on the {@link OpenSeadragon.Viewer#canvas} element.
|
||||
@ -2417,15 +2417,6 @@ function onCanvasDragEnd( event ) {
|
||||
}
|
||||
|
||||
function onCanvasRelease( event ) {
|
||||
var gestureSettings;
|
||||
|
||||
if ( event.insideElementPressed && this.viewport ) {
|
||||
gestureSettings = this.gestureSettingsByDeviceType( event.pointerType );
|
||||
|
||||
if ( !gestureSettings.flickEnabled ) {
|
||||
this.viewport.applyConstraints();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Raised when the mouse button is released or touch ends on the {@link OpenSeadragon.Viewer#canvas} element.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user