fix: request redraw when menu item hover state changes

This commit is contained in:
Hojjat 2026-08-10 12:12:18 -06:00 • committed by Michael Murphy
parent 633e6ab83f
commit 5da2e94337
2 changed files with 15 additions and 13 deletions

View file

@ -634,6 +634,10 @@ impl<'b, Message: Clone + 'static> Menu<'b, Message> {
shell,
);
if view_cursor.is_over(viewport) {
shell.request_redraw();
}
if self.is_overlay && view_cursor.is_over(viewport) {
shell.capture_event();
}
@ -1699,6 +1703,7 @@ fn process_scroll_events<Message>(
}
}
shell.capture_event();
shell.request_redraw();
});
}