start/stop tracking outerTracker on setMouseNavEnabled

This commit is contained in:
Alexey Tikhonov 2016-02-11 23:54:31 +03:00
parent deddfa2a18
commit d43c854c9f

View File

@ -779,6 +779,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
*/
setMouseNavEnabled: function( enabled ){
this.innerTracker.setTracking( enabled );
this.outerTracker.setTracking( enabled );
/**
* Raised when mouse/touch navigation is enabled or disabled (see {@link OpenSeadragon.Viewer#setMouseNavEnabled}).
*