prevent from changing tool on homepage
This commit is contained in:
parent
0c7e9ff9e4
commit
f20116b080
@ -36,11 +36,13 @@
|
|||||||
let elevationFill = writable<'slope' | 'surface' | undefined>(undefined);
|
let elevationFill = writable<'slope' | 'surface' | undefined>(undefined);
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
currentTool.set(Tool.SCISSORS);
|
$currentTool = Tool.SCISSORS;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$: $currentTool, ($currentTool = Tool.SCISSORS);
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
currentTool.set(null);
|
$currentTool = null;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user