summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-19 06:56:19 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-09-19 06:57:07 +0200
commit1f8dc1f3dda25c699b94c653d5d569f4142e9b83 (patch)
treec47f70668a95b0e8d529fd05197d3e5f6b9429db
parenta61c84b7e09a53ed7977692c4d7d7d5c589aed5c (diff)
downloadiced-1f8dc1f3dda25c699b94c653d5d569f4142e9b83.tar.gz
iced-1f8dc1f3dda25c699b94c653d5d569f4142e9b83.tar.bz2
iced-1f8dc1f3dda25c699b94c653d5d569f4142e9b83.zip
Fix `mouse_area` not notifying of mouse move events
-rw-r--r--widget/src/mouse_area.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/widget/src/mouse_area.rs b/widget/src/mouse_area.rs
index d255ac99..7330874a 100644
--- a/widget/src/mouse_area.rs
+++ b/widget/src/mouse_area.rs
@@ -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());