Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui_web: Disable native canvas selection (#63877)

Jakub Konka13e5c99ab7c2
diff --git a/crates/gpui_web/src/window.rs b/crates/gpui_web/src/window.rs
index b985adbf032..06c021bd40e 100644
--- a/crates/gpui_web/src/window.rs
+++ b/crates/gpui_web/src/window.rs
@@ -122,6 +122,8 @@ impl WebWindow {
("outline", "none"),
("touch-action", "none"),
("-webkit-touch-callout", "none"),
+ ("user-select", "none"),
+ ("-webkit-user-select", "none"),
] {
style.set_property(property, value).map_err(|error| {
anyhow::anyhow!("Failed to set canvas {property} style: {error:?}")