Redraw request events for multiwindow.
This commit is contained in:
parent
0a643287de
commit
367fea5dc8
3 changed files with 20 additions and 6 deletions
|
|
@ -89,7 +89,7 @@ impl Application for SolarSystem {
|
|||
}
|
||||
|
||||
fn subscription(&self) -> Subscription<Message> {
|
||||
window::frames().map(Message::Tick)
|
||||
window::frames().map(|frame| Message::Tick(frame.at))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue