From 98de269b4ac3151f1fd95ad1b0cff557402aab16 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 27 May 2022 11:36:37 +0200 Subject: [PATCH] Don't focus editor when clicking on sidebar resize handle --- crates/workspace/src/sidebar.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/workspace/src/sidebar.rs b/crates/workspace/src/sidebar.rs index 5aec332913..9aaf2b832a 100644 --- a/crates/workspace/src/sidebar.rs +++ b/crates/workspace/src/sidebar.rs @@ -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