mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
prevent from changing tool on homepage
This commit is contained in:
@@ -36,11 +36,13 @@
|
||||
let elevationFill = writable<'slope' | 'surface' | undefined>(undefined);
|
||||
|
||||
onMount(() => {
|
||||
currentTool.set(Tool.SCISSORS);
|
||||
$currentTool = Tool.SCISSORS;
|
||||
});
|
||||
|
||||
$: $currentTool, ($currentTool = Tool.SCISSORS);
|
||||
|
||||
onDestroy(() => {
|
||||
currentTool.set(null);
|
||||
$currentTool = null;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user