Compare commits

..

4 Commits

Author SHA1 Message Date
Ian Gilman
12402f2f0f Changelog for #2187 2022-08-01 14:19:22 -07:00
Ian Gilman
dafcf7bc14
Merge pull request #2187 from pearcetm/button-bugfix
Button bugfix
2022-08-01 14:15:55 -07:00
pearcetm
45643b94e3
Update button.js 2022-07-28 17:55:21 -04:00
pearcetm
6d5a75bcf7
Bugfix for enable/disable methods for Buttons
Fixes https://github.com/openseadragon/openseadragon/issues/2185
2022-07-28 17:53:49 -04:00
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@ OPENSEADRAGON CHANGELOG
* Now supporting IIIF "id" and "identifier" in addition to "@id" (#2173 @ahankinson)
* We now delegate tile fetching and caching to the TileSource, to allow for custom tile formats (#2148 @Aiosa)
* Fixed: Cropping tiled images with polygons was broken (#2183 @altert)
* Fixed: Disabling buttons only changed their appearance, but they were still clickable (#2187 @pearcetm)
3.1.0:

View File

@ -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();
},