fix: lazy widgets overlay is_over

This commit is contained in:
Nick Senger 2023-02-10 12:08:22 -08:00
parent 92ba26b8a1
commit 8fe851057d
3 changed files with 21 additions and 0 deletions

View file

@ -415,4 +415,11 @@ 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()
}
}