mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 06:36:11 +03:00
Merge pull request #1104 from dieend/navigator_constrainDuringPan
Navigator can pan outside boundary
This commit is contained in:
commit
525232c873
@ -405,6 +405,9 @@ function onCanvasDrag( event ) {
|
|||||||
event.delta
|
event.delta
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
if( this.viewer.constrainDuringPan ){
|
||||||
|
this.viewer.viewport.applyConstraints();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user