diff --git a/src/canvasdrawer.js b/src/canvasdrawer.js index 2ec6b17b..6a00a294 100644 --- a/src/canvasdrawer.js +++ b/src/canvasdrawer.js @@ -402,9 +402,7 @@ class CanvasDrawer extends OpenSeadragon.DrawerBase{ this._drawRectangle(placeholderRect, fillStyle, useSketch); } - if(!window.draw){ - lastDrawn = []; - } + var subPixelRoundingRule = determineSubPixelRoundingRule(tiledImage.subPixelRoundingForTransparency); var shouldRoundPositionAndSize = false; diff --git a/src/webgldrawer.js b/src/webgldrawer.js index d8b33f93..ac450b3c 100644 --- a/src/webgldrawer.js +++ b/src/webgldrawer.js @@ -242,10 +242,7 @@ if ( tiledImage.placeholderFillStyle && tiledImage._hasOpaqueTile === false ) { this._drawPlaceholder(tiledImage); } - this._drawPlaceholder(tiledImage); - if(!window.draw){ - return; - } + if(tilesToDraw.length === 0 || tiledImage.getOpacity() === 0){ return; }