Fix mouse_area not notifying of mouse move events
This commit is contained in:
parent
a61c84b7e0
commit
1f8dc1f3dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue