Add web fullscreen support (#1142)
Adds fullscreen using native web APIs to the stdweb and web-sys backends. Due to limitations of browser APIs, requests for fullscreen can only be fulfilled during a short-lived user-triggered event. This commit does automatically handle that under the hood, but it does introduce unavoidable latency in full-screening the canvas.
This commit is contained in:
parent
bedb889693
commit
3ff4834bd5
7 changed files with 242 additions and 48 deletions
|
|
@ -115,6 +115,6 @@ optional = true
|
|||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies.std_web]
|
||||
package = "stdweb"
|
||||
version = "0.4.18"
|
||||
version = "=0.4.20"
|
||||
optional = true
|
||||
|
||||
features = ["experimental_features_which_may_break_on_minor_version_bumps"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue