gpui2: Add on_hover events

This commit is contained in:
Conrad Irwin 2023-11-03 12:51:38 -06:00
parent d73c54f604
commit 26e64fb843
2 changed files with 64 additions and 0 deletions

View file

@ -1399,6 +1399,10 @@ impl Pane {
.group("")
.id(item.id())
.cursor_pointer()
.on_hover(|_, hovered, _| {
dbg!(hovered);
})
// .tooltip(|pane, cx| cx.create_view( tooltip.child("Hovering the tab"))
// .on_drag(move |pane, cx| pane.render_tab(ix, item.boxed_clone(), detail, cx))
// .drag_over::<DraggedTab>(|d| d.bg(cx.theme().colors().element_drop_target))
// .on_drop(|_view, state: View<DraggedTab>, cx| {