Hi Jonas,
Thanks for the quick reply :)
On Thu, Aug 1, 2013 at 10:28 AM, Jonas Sicking <
jo...@sicking.cc> wrote:
> The DeviceMotion/Orientation axis should probably always be mapped
>
Thanks - but see... it's this "probably always" that bothers me a lot as we
will have MANY problems between
different browser (and handset) vendors. I know the orientation lock spec
has been done with good intentions,
but in my experience from a previous job with a larger handset manufacturer
- even between departments in
the same company there can be confusion on how the mapping should be when
you open the can of worms
of allowing "portrait devices" and "landscape devices". Without going into
specifics - we did actually have a case, where
I uncovered that because of a simple "this is a landscape device"-mapping
someone did on a particular device
- even if the device had "auto rotate" on orientation - the XY-values were
still rotated 90 degrees compared to
all other devices. Everyone followed the specs they were given - but the
result was still a wrong mapping.
IF we go with the solution you propose, then the accelerometer data from
the deviceorientation/motion specs should be
revised to make it VERY simple for everyone (device and browser
manufacturers, framework developers and
application developers) to understand what's going on when you e.g. turn
the device and *then* call orientation lock to
some other orientation - or start with a lock in a certain orientation that
is then released, etc....
OR we could just make everything VERY simple by saying:
there are only portrait orientation devices - all others are mappings of
+/- 90 degrees - AND all coordinate systems stay stable
regardless of how you turn your device or how you call current or future
APIs. At least this would be easier for me to explain
to an entry level developer.
br
Lars