From 995d7b1fa59f3b90d2d7d8c70ff25a3e0e7bb092 Mon Sep 17 00:00:00 2001 From: Mani <12841290+krmanik@users.noreply.github.com> Date: Wed, 1 May 2024 18:03:27 +0800 Subject: [PATCH] fix polygon tool draw (#3184) --- ts/routes/image-occlusion/Toolbar.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/routes/image-occlusion/Toolbar.svelte b/ts/routes/image-occlusion/Toolbar.svelte index fd2a02cb8..bf6deafb6 100644 --- a/ts/routes/image-occlusion/Toolbar.svelte +++ b/ts/routes/image-occlusion/Toolbar.svelte @@ -89,8 +89,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html if (move) { move = false; } - disableFunctions(); - handleToolChanges(activeTool); } function onKeyup(event: KeyboardEvent) { @@ -230,6 +228,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html active={activeTool === tool.id} on:click={() => { activeTool = tool.id; + handleToolChanges(activeTool); }} > @@ -239,6 +238,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html keyCombination={tool.shortcut} on:action={() => { activeTool = tool.id; + handleToolChanges(activeTool); }} /> {/if}