Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix: disable text selection globally in editor webview

esengine1e06c350c1fd
diff --git a/desktop/index.html b/desktop/index.html
index 2e9901f51..caa23cb77 100644
--- a/desktop/index.html
+++ b/desktop/index.html
@@ -10,6 +10,12 @@
margin: 0;
padding: 0;
box-sizing: border-box;
+ -webkit-user-select: none;
+ user-select: none;
+ }
+ input, textarea, [contenteditable] {
+ -webkit-user-select: text;
+ user-select: text;
}
html, body {
width: 100%;