Fix missing on-mouseup when dragging the window on Linux (#17801)
Zed Hackathon entry :D Release Notes: - Fixed a bug where Zed would initiate a window move and then refuse to release the mouse. Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
de344c833b
commit
8f833ea029
1 changed files with 6 additions and 0 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue