From 8fe851057df0df113aaac6b8dc067b3a75d18d65 Mon Sep 17 00:00:00 2001 From: Nick Senger Date: Fri, 10 Feb 2023 12:08:22 -0800 Subject: fix: lazy widgets overlay is_over --- lazy/src/lazy.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lazy/src/lazy.rs') diff --git a/lazy/src/lazy.rs b/lazy/src/lazy.rs index 9795afa4..5e909a49 100644 --- a/lazy/src/lazy.rs +++ b/lazy/src/lazy.rs @@ -372,6 +372,13 @@ where }) .unwrap_or(iced_native::event::Status::Ignored) } + + fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool { + self.with_overlay_maybe(|overlay| { + overlay.is_over(layout, cursor_position) + }) + .unwrap_or_default() + } } impl<'a, Message, Renderer, Dependency, View> -- cgit