Skip to content

Commit

Permalink
fix update views (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmoulton authored Jan 27, 2025
1 parent 0a18dcf commit e8e283b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/window_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -602,12 +602,6 @@ impl WindowHandle {

self.compute_layout();

// Mouse move with current pos, just to update which views are hovered
self.event(Event::PointerMove(PointerMoveEvent {
pos: self.cursor_position,
modifiers: self.modifiers,
}));

taffy_duration
}

Expand Down Expand Up @@ -777,6 +771,10 @@ impl WindowHandle {
if self.needs_layout() {
paint = true;
self.layout();
self.event(Event::PointerMove(PointerMoveEvent {
pos: self.cursor_position,
modifiers: self.modifiers,
}));
}

if self.app_state.request_compute_layout {
Expand Down

0 comments on commit e8e283b

Please sign in to comment.