diff --git a/src/tiledimage.js b/src/tiledimage.js index 67c2a7f3..ed5f9443 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -1454,7 +1454,9 @@ function drawTiles( tiledImage, lastDrawn ) { // Except when edge smoothing, we only clean the part of the // sketch canvas we are going to use for performance reasons. bounds = tiledImage.viewport.viewportToViewerElementRectangle( - tiledImage.getClippedBounds(true)).getIntegerBoundingBox(); + tiledImage.getClippedBounds(true)) + .getIntegerBoundingBox() + .times($.pixelDensityRatio); } tiledImage._drawer._clear(true, bounds); }