Implement requestAnimationFrame for web (#1519)

* Use requestAnimationFrame for polling wasm

* Implement `requestAnimationFrame` for stdweb

Co-authored-by: Ryan G <ryanisaacg@users.noreply.github.com>
This commit is contained in:
Jurgis 2020-04-11 22:49:07 +03:00 committed by GitHub
parent a8e777a5df
commit 1f24a09570
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 93 additions and 6 deletions

View file

@ -3,7 +3,7 @@ mod event;
mod timeout;
pub use self::canvas::Canvas;
pub use self::timeout::Timeout;
pub use self::timeout::{AnimationFrameRequest, Timeout};
use crate::dpi::{LogicalSize, Size};
use crate::platform::web::WindowExtWebSys;