prevented select highlight & default context menus

This commit is contained in:
2026-03-24 23:48:34 +08:00
parent 96d1ead1a9
commit e7f9633fcc
2 changed files with 13 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -51,6 +51,10 @@
stopUserStatus();
stopAppState();
});
document.addEventListener("contextmenu", (e) => {
e.preventDefault();
});
}
</script>