winit/src/platform_impl/web/event_loop
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
..
mod.rs Handle scale factor change on web-sys backend (#1690) 2020-08-30 09:15:44 -04:00
proxy.rs Have EventLoopClosed contain the original event (#1294) 2019-12-07 10:22:03 -07:00
runner.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
state.rs Implement requestAnimationFrame for web (#1519) 2020-04-11 15:49:07 -04:00
window_target.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00