Merge branch 'cache-overhaul-reviewed' of github.com:RationAI/openseadragon into cache-overhaul-reviewed

This commit is contained in:
Aiosa 2024-08-24 10:00:09 +02:00
commit e3af370832
2 changed files with 8 additions and 3 deletions

View File

@ -3,6 +3,8 @@ OPENSEADRAGON CHANGELOG
5.0.1: (in progress...)
* Fixed: If you switched from WebGL drawer to canvas drawer, it didn't clean up properly (#2570 @pearcetm)
5.0.0:
* BREAKING CHANGE: Dropped support for IE11 (#2300, #2361, #2553 @AndrewADev, @msalsbery)

View File

@ -822,8 +822,8 @@
this._renderingCanvas.height = this._clippingCanvas.height = this._outputCanvas.height;
this._gl = this._renderingCanvas.getContext('webgl');
//make the additional canvas elements mirror size changes to the output canvas
this.viewer.addHandler("resize", function(){
this._resizeHandler = function(){
if(_this._outputCanvas !== _this.viewer.drawer.canvas){
_this._outputCanvas.style.width = _this.viewer.drawer.canvas.clientWidth + 'px';
@ -844,7 +844,10 @@
// important - update the size of the rendering viewport!
_this._resizeRenderer();
});
};
//make the additional canvas elements mirror size changes to the output canvas
this.viewer.addHandler("resize", this._resizeHandler);
}
_setupTextureHandlers(thisType) {