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.

Fix missing on-mouseup when dragging the window on Linux (#17801)

Barry Penner8f833ea02944
diff --git a/crates/title_bar/src/title_bar.rs b/crates/title_bar/src/title_bar.rs
index fd3f01e5f78..e2d45a923b7 100644
--- a/crates/title_bar/src/title_bar.rs
+++ b/crates/title_bar/src/title_bar.rs
@@ -182,6 +182,12 @@ impl Render for TitleBar {
.on_mouse_down_out(cx.listener(move |this, _ev, _cx| {
this.should_move = false;
}))
+ .on_mouse_up(
+ gpui::MouseButton::Left,
+ cx.listener(move |this, _ev, _cx| {
+ this.should_move = false;
+ }),
+ )
.on_mouse_down(
gpui::MouseButton::Left,
cx.listener(move |this, _ev, _cx| {