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
Add screen-adjusted device orientation attributes to DeviceOrientationEvent interface #10
Conversation
…nBeta, screenGamma
Generic Sensor API defines a local coordinate system that can be either the device coordinate system or the screen coordinate system. The Accelerometer, Gyroscope, and Magnetometer specifications that decompose the https://w3c.github.io/accelerometer/#enumdef-accelerometerlocalcoordinatesystem Proposal: Since the Generic Sensor-based APIs now provide a modern API surface that satisfies this requirement, close this PR and do not add this new feature to the DeviceOrientation Event spec. Any concerns, please let us know in the PR comments. |
Hearing no concerns, it looks like this issue can be closed. But before closing, I'd like to get feedback whether we should add some informative text along the following lines to the DeviceOrientation Event spec:
|
Informative text would be useful yes, however an example jsfiddle or something of that nature that would allow someone to see when their local device does not resolve in the expected manner would be extra useful, thought this probably falls outside the scope of what you may want to provide here. Not all browsers/devices allow resolution of orientation information in a uniform manner, so I would have myself supported the concept of a "screenAlpha et al" |
@TolMera, thanks for the feedback! Couple of alternatives building upon the existing work:
Contributions welcome! |
@anssiko, actually we've been working on these,
Maybe @rakuco would like to help review, friendly ping. :) |
Discussed at Devices and Sensors WG Face-to-face at TPAC 2018. Closing this issue as we are not adding new features that are not implemented by any vendor. |
Add
screenAlpha
,screenBeta
andscreenGamma
attributes to theDeviceOrientationEvent
interface.This spec addition was proposed and discussed on the W3C WebApps mailing list at http://lists.w3.org/Archives/Public/public-webapps/2014JulSep/0203.html. Mozilla have expressed support to implement this and we have a patch ready for Chromium for this also (pending addition of these attributes to the spec).