Refine mouse event naming
This commit is contained in:
parent
3e23d1f48d
commit
6e53deb1b2
11 changed files with 353 additions and 393 deletions
|
@ -4,7 +4,7 @@ use collections::HashSet;
|
|||
use gpui::{
|
||||
elements::{MouseEventHandler, Overlay},
|
||||
geometry::vector::Vector2F,
|
||||
scene::DragRegionEvent,
|
||||
scene::MouseDrag,
|
||||
CursorStyle, Element, ElementBox, EventContext, MouseButton, MutableAppContext, RenderContext,
|
||||
View, WeakViewHandle,
|
||||
};
|
||||
|
@ -70,7 +70,7 @@ impl<V: View> DragAndDrop<V> {
|
|||
}
|
||||
|
||||
pub fn dragging<T: Any>(
|
||||
event: DragRegionEvent,
|
||||
event: MouseDrag,
|
||||
payload: Rc<T>,
|
||||
cx: &mut EventContext,
|
||||
render: Rc<impl 'static + Fn(&T, &mut RenderContext<V>) -> ElementBox>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue