extracted event listeners out of debug components into dedicated files

This commit is contained in:
2026-08-22 00:44:41 +08:00
parent 77ec683654
commit 7bb95dc437
12 changed files with 227 additions and 177 deletions
+5
View File
@@ -1,8 +1,13 @@
<script>
import { browser } from "$app/environment";
import { onMount } from "svelte";
import { initAppListeners } from "$lib/listeners";
import "../app.css";
let { children } = $props();
onMount(initAppListeners);
if (browser) {
document.addEventListener("contextmenu", (e) => {
e.preventDefault();