more event wip

This commit is contained in:
K Simmons 2022-07-22 14:00:38 -07:00
parent 53add253b6
commit a650c146f1
4 changed files with 175 additions and 97 deletions

View file

@ -1025,13 +1025,13 @@ impl Pane {
.on_drag(MouseButton::Left, |_, cx| {
cx.global::<DragAndDrop>().dragging(some view handle)
})
.on_mouse_up_out(MouseButton::Left, |_, cx| {
.on_up_out(MouseButton::Left, |_, cx| {
cx.global::<DragAndDrop>().stopped_dragging(some view handle)
})
.on_drag_over(MouseButton::Left, |started, _, cx| {
.on_drag_over(MouseButton::Left, |started, _, _, cx| {
if started {
if let Some(tab) = cx.global::<DragAndDrop>().current_dragged::<Tab>() {
cx.dispatch_action(ReceivingTab)
cx.dispatch_action(ReceivingTab);
}
}
})