diff --git a/src/lib/components/InfoPanel.svelte b/src/lib/components/InfoPanel.svelte index 347b6f9..fdc2969 100644 --- a/src/lib/components/InfoPanel.svelte +++ b/src/lib/components/InfoPanel.svelte @@ -91,6 +91,10 @@ activeTab = isMobile ? 'about' : 'shortcuts'; } + function closeFromOverlay(event: MouseEvent) { + if (event.target === event.currentTarget) close(); + } + function openLink(url: string) { openUrl(url).catch(console.error); } @@ -100,9 +104,8 @@ {#if $showInfo} -
{ if (e.key === 'Escape') close(); }}> - -
e.stopPropagation()}> +
{ if (e.key === 'Escape') close(); }}> +

Info