diff options
Diffstat (limited to 'native/src/overlay.rs')
-rw-r--r-- | native/src/overlay.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/native/src/overlay.rs b/native/src/overlay.rs index 1c3d0fb9..6cada416 100644 --- a/native/src/overlay.rs +++ b/native/src/overlay.rs @@ -90,7 +90,10 @@ where mouse::Interaction::Idle } - /// Returns true if the cursor is over the [`Overlay`] + /// Returns true if the cursor is over the [`Overlay`]. + /// + /// By default, it returns true if the bounds of the `layout` contain + /// the `cursor_position`. fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool { layout.bounds().contains(cursor_position) } |