From e50d3639ce5215aa7ec7ce1e9445d15cba7935d3 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 2 Dec 2023 15:47:01 -0500 Subject: [PATCH] bugfix in canvasdrawer tiled-image-drawn event --- src/canvasdrawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canvasdrawer.js b/src/canvasdrawer.js index e4fd321f..9a4ac2dc 100644 --- a/src/canvasdrawer.js +++ b/src/canvasdrawer.js @@ -511,7 +511,7 @@ class CanvasDrawer extends $.DrawerBase{ */ this.viewer.raiseEvent( 'tiled-image-drawn', { tiledImage: tiledImage, - tiles: tilesToDraw.map(info => info.tile), + tiles: lastDrawn, }); } }