Skip to content

Commit 4044240

Browse files
committed
fix: lazy overlay is_over
1 parent 92ba26b commit 4044240

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

lazy/src/lazy.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,16 @@ where
372372
})
373373
.unwrap_or(iced_native::event::Status::Ignored)
374374
}
375+
376+
fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool {
377+
self.with_overlay_maybe(|overlay| {
378+
overlay.is_over(
379+
layout,
380+
cursor_position,
381+
)
382+
})
383+
.unwrap_or_default()
384+
}
375385
}
376386

377387
impl<'a, Message, Renderer, Dependency, View>

0 commit comments

Comments
 (0)