Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix bug in drag move dispatch
Mikayla4c63c74f920d
diff --git a/crates/gpui2/src/elements/div.rs b/crates/gpui2/src/elements/div.rsindex 395afdcc884..1019e5f5e63 100644--- a/crates/gpui2/src/elements/div.rs+++ b/crates/gpui2/src/elements/div.rs@@ -213,7 +213,7 @@ pub trait InteractiveElement: Sized {listener: impl Fn(&DragMoveEvent<T>, &mut WindowContext) + 'static,) -> Selfwhere- T: Render,+ T: 'static,{self.interactivity().mouse_move_listeners.push(Box::new(move |event, bounds, phase, cx| {@@ -223,7 +223,7 @@ pub trait InteractiveElement: Sized {if cx.active_drag.as_ref()- .is_some_and(|drag| drag.value.type_id() == TypeId::of::<T>())+ .is_some_and(|drag| (*drag.value).type_id() == TypeId::of::<T>()){(listener)(&DragMoveEvent {