Skip to content

Commit dba500b

Browse files
committed
masonry: Handle signals between AnimFrame event and redraw
1 parent 5397176 commit dba500b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

masonry/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ impl<Driver: AppDriver> MasonryViewPeer<Driver> {
251251
self.state
252252
.render_root
253253
.handle_window_event(WindowEvent::AnimFrame(elapsed));
254+
255+
// Make sure we handle any signals emitted in response to the
256+
// `AnimFrame` event before we redraw.
257+
self.handle_signals(ctx);
258+
254259
// If this animation will continue, store the time.
255260
// If a new animation starts, then it will have zero reported elapsed time.
256261
let animation_continues = self.state.render_root.needs_anim();

0 commit comments

Comments
 (0)