mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 13:16:10 +03:00
More reasonable handling of the navigator when interacting outside the bounds of the display region
This commit is contained in:
parent
dc7bc6920c
commit
7a8ebd7d4c
@ -138,6 +138,7 @@ $.Navigator = function( options ){
|
|||||||
|
|
||||||
this.element.innerTracker = new $.MouseTracker({
|
this.element.innerTracker = new $.MouseTracker({
|
||||||
element: this.element,
|
element: this.element,
|
||||||
|
dragHandler: $.delegate( this, onCanvasDrag ),
|
||||||
clickHandler: $.delegate( this, onCanvasClick ),
|
clickHandler: $.delegate( this, onCanvasClick ),
|
||||||
releaseHandler: $.delegate( this, onCanvasRelease ),
|
releaseHandler: $.delegate( this, onCanvasRelease ),
|
||||||
scrollHandler: function(){
|
scrollHandler: function(){
|
||||||
@ -147,16 +148,6 @@ $.Navigator = function( options ){
|
|||||||
}
|
}
|
||||||
}).setTracking( true );
|
}).setTracking( true );
|
||||||
|
|
||||||
this.displayRegion.innerTracker = new $.MouseTracker({
|
|
||||||
element: this.displayRegion,
|
|
||||||
clickTimeThreshold: this.clickTimeThreshold,
|
|
||||||
clickDistThreshold: this.clickDistThreshold,
|
|
||||||
|
|
||||||
dragHandler: $.delegate( this, onCanvasDrag ),
|
|
||||||
releaseHandler: $.delegate( this, onCanvasRelease ),
|
|
||||||
scrollHandler: $.delegate( this, onCanvasScroll )
|
|
||||||
}).setTracking( true ); // default state
|
|
||||||
|
|
||||||
/*this.displayRegion.outerTracker = new $.MouseTracker({
|
/*this.displayRegion.outerTracker = new $.MouseTracker({
|
||||||
element: this.container,
|
element: this.container,
|
||||||
clickTimeThreshold: this.clickTimeThreshold,
|
clickTimeThreshold: this.clickTimeThreshold,
|
||||||
|
Loading…
Reference in New Issue
Block a user