-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple fixes to EmscriptenOrientationChangeEvent #21428
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d1cf605
Correctly fill EmscriptenOrientationChangeEvent struct
cwoffenden 8ca40b2
Add support for the deprecated angle-only API call
cwoffenden 048c0a4
Correctly target the screen.orientation changed listener
cwoffenden 0bef531
Changed to single quotes
cwoffenden 54f1dab
Added explanation to existing code
cwoffenden 6bf9a6c
Added back support for pre-Chrome Edge
cwoffenden b6785f7
Added option to exclude Safari-only workaround
cwoffenden 7719a07
Removed pre-Chrome Edge support, fixed 'window' reference, minor opts
cwoffenden ffa8e8d
Get the alternative orientation properties through Closure
cwoffenden 38557e2
The property doesn't need array access
cwoffenden 9aa1d7e
Removed other MS prefixed orientation uses
cwoffenden a1a1712
Orientation type is always a known value (and fixed shifting when giv…
cwoffenden 53024e5
Added docs.
cwoffenden 47ce982
Minor: quotes (mostly to rerun CI)
cwoffenden f3c6496
Clarified text
cwoffenden 2d466ec
Further docs clarification
cwoffenden 3c4b972
Replace screen with window.screen to stop exceptions
cwoffenden 961b739
Don't emit empty else block
cwoffenden 774e5b9
Minor: moved braces
cwoffenden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:This might be clearer if it was
{{{ cDefs.EMSCRIPTEN_ORIENTATION_UNSUPPORTED }}}
, although that would require updatingstruct_info.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NP, I'll take a look (the CI is broken so it'll keep me busy until that's resolved).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested nitpick added to #21550.