Add PointingHand on tabs

This commit is contained in:
Conrad Irwin
2023-11-03 11:30:15 -06:00
parent c604a2e34e
commit d73c54f604
6 changed files with 71 additions and 18 deletions
+7
View File
@@ -254,6 +254,13 @@ where
return;
}
if let Some(mouse_cursor) = style.mouse_cursor {
let hovered = bounds.contains_point(&cx.mouse_position());
if hovered {
cx.set_cursor_style(mouse_cursor);
}
}
if let Some(group) = this.group.clone() {
GroupBounds::push(group, bounds, cx);
}