mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 06:05:19 +00:00
Don't focus editor when clicking on sidebar resize handle
This commit is contained in:
parent
be0e66ef21
commit
98de269b4a
1 changed files with 1 additions and 0 deletions
|
@ -165,6 +165,7 @@ impl Sidebar {
|
|||
..Default::default()
|
||||
})
|
||||
.with_cursor_style(CursorStyle::ResizeLeftRight)
|
||||
.on_mouse_down(|_, _| {}) // This prevents the mouse down event from being propagated elsewhere
|
||||
.on_drag(move |delta, cx| {
|
||||
let prev_width = *actual_width.borrow();
|
||||
*custom_width.borrow_mut() = 0f32
|
||||
|
|
Loading…
Reference in a new issue