summaryrefslogtreecommitdiffstats
path: root/native/src/overlay/group.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/overlay/group.rs')
-rw-r--r--native/src/overlay/group.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/native/src/overlay/group.rs b/native/src/overlay/group.rs
index f894f911..96d10c19 100644
--- a/native/src/overlay/group.rs
+++ b/native/src/overlay/group.rs
@@ -151,6 +151,19 @@ where
)
});
}
+
+ fn contains_cursor(
+ &self,
+ layout: Layout<'_>,
+ cursor_position: Point,
+ ) -> bool {
+ self.children
+ .iter()
+ .zip(layout.children())
+ .any(|(child, layout)| {
+ child.contains_cursor(layout, cursor_position)
+ })
+ }
}
impl<'a, Message, Renderer> From<Group<'a, Message, Renderer>>