From 7db55a6a12bc13dbb620dc7db857b8cd2f3cb538 Mon Sep 17 00:00:00 2001 From: Felix Schuller Date: Thu, 13 Feb 2020 14:52:32 +0100 Subject: [PATCH] fix: OverlayTool now considers overlay initial position (#1177) --- src/tools/OverlayTool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/OverlayTool.js b/src/tools/OverlayTool.js index ce1698d5c..5eb75a6cf 100644 --- a/src/tools/OverlayTool.js +++ b/src/tools/OverlayTool.js @@ -104,7 +104,7 @@ export default class OverlayTool extends BaseTool { } // Draw the overlay layer onto the canvas - canvasContext.drawImage(layerCanvas, 0, 0); + canvasContext.drawImage(layerCanvas, overlay.x, overlay.y); }); } }