more event wip
This commit is contained in:
parent
53add253b6
commit
a650c146f1
4 changed files with 175 additions and 97 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue