winit/src/platform_impl/web/web_sys
alvinhochun 47e7aa4209
Add cleanup code to web backend, mostly web-sys (#1715)
* web-sys: Impl. event listeners removal for canvas

* web-sys: Impl. media query listeners cleanup

* web: Emit WindowEvent::Destroyed after Window is dropped

* web-sys: Fix unload event closure being dropped early

* web: Impl. cleanup on ControlFlow::Exit

- Drops the Runner, which causes the event handler closure to be
  dropped.
- (web-sys only:) Remove event listeners from DOM.

* web: Do not remove canvas from DOM when dropping Window

The canvas was inserted by the user, so it should be up to the user
whether the canvas should be removed.

* Update changelog
2020-09-20 18:42:07 -04:00
..
canvas Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
canvas.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
event.rs Prefix numpad virtual key codes with Numpad 2020-09-20 12:58:24 +03:00
event_handle.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
media_query_handle.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
mod.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
scaling.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
timeout.rs Implement requestAnimationFrame for web (#1519) 2020-04-11 15:49:07 -04:00