mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix polygon tool draw (#3184)
This commit is contained in:
parent
4a05fab088
commit
995d7b1fa5
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
if (move) {
|
if (move) {
|
||||||
move = false;
|
move = false;
|
||||||
}
|
}
|
||||||
disableFunctions();
|
|
||||||
handleToolChanges(activeTool);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onKeyup(event: KeyboardEvent) {
|
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}
|
active={activeTool === tool.id}
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
activeTool = tool.id;
|
activeTool = tool.id;
|
||||||
|
handleToolChanges(activeTool);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon icon={tool.icon} />
|
<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}
|
keyCombination={tool.shortcut}
|
||||||
on:action={() => {
|
on:action={() => {
|
||||||
activeTool = tool.id;
|
activeTool = tool.id;
|
||||||
|
handleToolChanges(activeTool);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in a new issue