diff --git a/src/app.css b/src/app.css index 8c28a06..f5643ba 100644 --- a/src/app.css +++ b/src/app.css @@ -77,6 +77,15 @@ background-color: transparent; } +* { + -webkit-touch-callout: none; /* iOS Safari */ + -webkit-user-select: none; /* Safari */ + -khtml-user-select: none; /* Konqueror HTML */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* Internet Explorer/Edge */ + user-select: none; /* Standard property */ +} + .pixelated { image-rendering: pixelated; } diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 743211b..93f0efc 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -51,6 +51,10 @@ stopUserStatus(); stopAppState(); }); + + document.addEventListener("contextmenu", (e) => { + e.preventDefault(); + }); }