mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-27 10:37:17 +00:00
prevent from changing tool on homepage
This commit is contained in:
1 parent
0c7e9ff9e4
commit
f20116b080
1 file changed
+4
-2
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user