Relay hover events to tabs

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-04-27 11:37:14 -06:00
co-authored by Max Brunsfeld
parent 3d1e44ca29
commit bb95d58c79
4 changed files with 44 additions and 18 deletions
+2 -1
View File
@@ -229,7 +229,8 @@ impl Pane {
row.add_child(
Expanded::new(
1.0,
MouseEventHandler::new::<Tab, _>(0, ctx, |mouse_state| {
MouseEventHandler::new::<Tab, _>(item.id(), ctx, |mouse_state| {
log::info!("mouse event handler {:?}", mouse_state);
ConstrainedBox::new(
EventHandler::new(container.boxed())
.on_mouse_down(move |ctx| {