Skip to content

Commit

Permalink
Fix mouse_area not notifying of mouse move events
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Sep 19, 2024
1 parent a61c84b commit 1f8dc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/mouse_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 1f8dc1f

Please sign in to comment.