mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-03 13:53:31 +03:00
Merge pull request #1104 from dieend/navigator_constrainDuringPan
Navigator can pan outside boundary
This commit is contained in:
commit
525232c873
1 changed files with 3 additions and 0 deletions
|
@ -405,6 +405,9 @@ function onCanvasDrag( event ) {
|
|||
event.delta
|
||||
)
|
||||
);
|
||||
if( this.viewer.constrainDuringPan ){
|
||||
this.viewer.viewport.applyConstraints();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue