diff --git a/src/button.js b/src/button.js index 4431983f..efa9eec3 100644 --- a/src/button.js +++ b/src/button.js @@ -398,6 +398,7 @@ $.extend( $.Button.prototype, $.EventSource.prototype, /** @lends OpenSeadragon. disable: function(){ this.notifyGroupExit(); this.element.disabled = true; + this.tracker.setTracking(false); $.setElementOpacity( this.element, 0.2, true ); }, @@ -406,6 +407,7 @@ $.extend( $.Button.prototype, $.EventSource.prototype, /** @lends OpenSeadragon. */ enable: function(){ this.element.disabled = false; + this.tracker.setTracking(true); $.setElementOpacity( this.element, 1.0, true ); this.notifyGroupEnter(); },