From 5fcb296434c4f198f39fc41c7526a3240f000408 Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Mon, 8 May 2023 13:59:57 -0400 Subject: [PATCH] Merge pull request #2453 from zed-industries/fix-click-fallthrough Fixed clicks falling through the modal terminal --- crates/gpui/src/scene/mouse_region.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/gpui/src/scene/mouse_region.rs b/crates/gpui/src/scene/mouse_region.rs index 258583124f..0efc794148 100644 --- a/crates/gpui/src/scene/mouse_region.rs +++ b/crates/gpui/src/scene/mouse_region.rs @@ -223,41 +223,41 @@ impl HandlerSet { set.insert( HandlerKey::new(MouseEvent::move_disc(), None), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); set.insert( HandlerKey::new(MouseEvent::hover_disc(), None), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); for button in MouseButton::all() { set.insert( HandlerKey::new(MouseEvent::drag_disc(), Some(button)), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); set.insert( HandlerKey::new(MouseEvent::down_disc(), Some(button)), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); set.insert( HandlerKey::new(MouseEvent::up_disc(), Some(button)), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); set.insert( HandlerKey::new(MouseEvent::click_disc(), Some(button)), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); set.insert( HandlerKey::new(MouseEvent::down_out_disc(), Some(button)), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); set.insert( HandlerKey::new(MouseEvent::up_out_disc(), Some(button)), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); } set.insert( HandlerKey::new(MouseEvent::scroll_wheel_disc(), None), - SmallVec::from_buf([Rc::new(|_, _, _, _| false)]), + SmallVec::from_buf([Rc::new(|_, _, _, _| true)]), ); HandlerSet { set }