Property refactoring

The tests are working and everything seems to be back normal.
But there is still some cleanup required
This commit is contained in:
Olivier Goffart 2020-07-01 18:46:33 +02:00
parent facc18d0eb
commit 9d852f802e
7 changed files with 716 additions and 486 deletions

View file

@ -83,6 +83,9 @@ impl EventLoop {
event: winit::event::WindowEvent::MouseInput { state, .. },
..
} => {
crate::animations::CURRENT_ANIMATION_DRIVER.with(|driver| {
driver.borrow_mut().update_animations(instant::Instant::now());
});
ALL_WINDOWS.with(|windows| {
if let Some(Some(window)) =
windows.borrow().get(&window_id).map(|weakref| weakref.upgrade())