RE: Supporting Portrait-First and Landscape-First devices in HTML5 Device Orientation

On Aug 15, 2013 2:52 PM, "Dhruv Chadha" <Dhruv.Chadha@microsoft.com> wrote:
> If anything the Device Orientation spec says: the device coordinate frame
(i.e. x,y,z) is defined relative to the screen (i.e. hardware screen [2])
in its standard orientation. The hardware sensors that provide device
orientation data are aligned to the native/standard orientation.
 Therefore, for device orientation usage, the current screen orientation
(e.g. Landscape-Secondary, Portrait-Primary, etc.) does not determine what
is up.  This is determined by the hardware.  The spec would have to be
changed if we want to have the current screen orientation automatically
influence what is up.

Indeed. I noticed this part of the DeviceOrientation spec after sending my
previous email.

I think we need to fix this by changing the defined behavior of the specs
here. What is currently defined by the DeviceOrientation spec does not seem
useful.

/ Jonas

Received on Friday, 16 August 2013 02:55:49 UTC