fix polygon tool draw (#3184)

This commit is contained in:
Mani 2024-05-01 18:03:27 +08:00 committed by GitHub
parent 4a05fab088
commit 995d7b1fa5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}}
>
<Icon icon={tool.icon} />
@ -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}