From 35d586885459e8023a0d125b71b9676114191957 Mon Sep 17 00:00:00 2001 From: Victor Seiji Hariki Date: Tue, 20 Dec 2022 23:43:29 -0300 Subject: [PATCH] make stamp redraw on zoom Signed-off-by: Victor Seiji Hariki --- js/ui/tool/stamp.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/ui/tool/stamp.js b/js/ui/tool/stamp.js index 2722fde..5aa1811 100644 --- a/js/ui/tool/stamp.js +++ b/js/ui/tool/stamp.js @@ -327,6 +327,10 @@ const stampTool = () => uiCtx.restore(); }; + state.redraw = () => { + state.movecb(state.lastMouseMove); + }; + state.drawcb = (evn) => { let x = evn.x; let y = evn.y;