This commit is contained in:
Timothy J. Baek 2024-09-17 23:02:41 +02:00
parent 67f95ddfdc
commit 65b7c9898b

View File

@ -2,7 +2,7 @@
import { SvelteFlowProvider } from '@xyflow/svelte'; import { SvelteFlowProvider } from '@xyflow/svelte';
import { slide } from 'svelte/transition'; import { slide } from 'svelte/transition';
import { onMount } from 'svelte'; import { onDestroy, onMount } from 'svelte';
import { mobile, showControls, showCallOverlay, showOverview } from '$lib/stores'; import { mobile, showControls, showCallOverlay, showOverview } from '$lib/stores';
import Modal from '../common/Modal.svelte'; import Modal from '../common/Modal.svelte';
@ -45,6 +45,10 @@
mediaQuery.removeEventListener('change', handleMediaQuery); mediaQuery.removeEventListener('change', handleMediaQuery);
}; };
}); });
onDestroy(() => {
showControls.set(false);
});
</script> </script>
<SvelteFlowProvider> <SvelteFlowProvider>