W3C home > Mailing lists > Public > public-device-apis-log@w3.org > January 2018

Re: [sensors] Investigate possibility of synchronizing coordinate systems

From: Kenneth Rohde Christiansen via GitHub <sysbot+gh@w3.org>
Date: Thu, 11 Jan 2018 21:31:10 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-357067650-1515706269-sysbot+gh@w3.org>
I do automatic mapping in the polyfill right now, https://github.com/kenchris/sensor-polyfills/blob/master/src/motion-sensors.js#L310

Basically that makes things move along with screen orientation, ie. if an object is being rotated, then it will stay in the same place (from user point of view) when the screen changes orientation. In my experience that is the most common use-case and what feels more natural.

-- 
GitHub Notification of comment by kenchris
Please view or discuss this issue at https://github.com/w3c/sensors/issues/257#issuecomment-357067650 using your GitHub account
Received on Thursday, 11 January 2018 21:31:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:34:25 UTC