winit/src/platform_impl/web/web_sys
Simon Hausmann 5a78fe33e8
Fix failing assertion on start-up with Safari (#1736)
The initial media query that's used to watch for device pixel ratio
changes should match. Unfortunately it doesn't with Safari and the
corresponding assertion fails. This is because resolution is not a
supported support property for queries. As a workaround, this patch
extends the query to optionally match for the webkit specific DPR
property directly.

This fixes #1734
2020-10-10 00:31:51 -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 Fix failing assertion on start-up with Safari (#1736) 2020-10-10 00:31:51 -04:00
timeout.rs Implement requestAnimationFrame for web (#1519) 2020-04-11 15:49:07 -04:00