winit/src/platform_impl/web
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
..
event_loop Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
stdweb Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
web_sys Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00
device.rs Draft web platform structure 2019-06-25 03:15:34 +02:00
error.rs Fix web errors (#1040) 2019-07-10 18:54:54 -04:00
mod.rs Handle scale factor change on web-sys backend (#1690) 2020-08-30 09:15:44 -04:00
monitor.rs Rename hidpi_factor to scale_factor (#1334) 2020-01-05 14:15:12 -05:00
window.rs Add cleanup code to web backend, mostly web-sys (#1715) 2020-09-20 18:42:07 -04:00