fix: lazy widgets overlay is_over
This commit is contained in:
parent
92ba26b8a1
commit
8fe851057d
3 changed files with 21 additions and 0 deletions
|
|
@ -563,4 +563,11 @@ where
|
||||||
|
|
||||||
event_status
|
event_status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn is_over(&self, layout: Layout<'_>, cursor_position: Point) -> bool {
|
||||||
|
self.with_overlay_maybe(|overlay| {
|
||||||
|
overlay.is_over(layout, cursor_position)
|
||||||
|
})
|
||||||
|
.unwrap_or_default()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -372,6 +372,13 @@ where
|
||||||
})
|
})
|
||||||
.unwrap_or(iced_native::event::Status::Ignored)
|
.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>
|
impl<'a, Message, Renderer, Dependency, View>
|
||||||
|
|
|
||||||
|
|
@ -415,4 +415,11 @@ where
|
||||||
})
|
})
|
||||||
.unwrap_or(iced_native::event::Status::Ignored)
|
.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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue