fix: allow overlay mouse interaction outside its bounds

This commit is contained in:
alex-ds13 2025-05-02 15:51:01 +01:00
parent aa2a50110d
commit a01beefa84
2 changed files with 1 additions and 15 deletions

View file

@ -537,16 +537,7 @@ where
cursor,
);
if cursor
.position()
.map(|cursor_position| {
overlay.is_over(
Layout::new(layout),
renderer,
cursor_position,
)
})
.unwrap_or_default()
if overlay_interaction != mouse::Interaction::default()
{
overlay_interaction
} else {