Fix mouse_area not notifying of mouse move events

This commit is contained in:
Héctor Ramón Jiménez 2024-09-19 06:56:19 +02:00
parent a61c84b7e0
commit 1f8dc1f3dd
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -316,7 +316,7 @@ fn update<Message: Clone, Theme, Renderer>(
let cursor_position = cursor.position();
let bounds = layout.bounds();
if state.cursor_position != cursor_position && state.bounds != bounds {
if state.cursor_position != cursor_position || state.bounds != bounds {
let was_hovered = state.is_hovered;
state.is_hovered = cursor.is_over(layout.bounds());