W3C home > Mailing lists > Public > public-geolocation@w3.org > October 2019

Re: [deviceorientation] Need to define the DeviceMotionEvent constructor (#83)

From: Raphael Kubo da Costa via GitHub <sysbot+gh@w3.org>
Date: Sat, 19 Oct 2019 18:14:12 +0000
To: public-geolocation@w3.org
Message-ID: <issue_comment.created-544182954-1571508850-sysbot+gh@w3.org>
Hmm, existing implementations have conflicting views here.

`new DeviceMotionEvent('foo')` creates a `DeviceMotionEvent` whose `accelerometer`, `accelerationIncludingGravity` and `rotationRate` attributes return `null` on Chrome 78, but on Firefox 69.0.3 the attributes return `Device{Acceleration,RotationRate}` objects with all attributes set to `null`.

I don't have an iPhone to test the WebKit implementation.

-- 
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/deviceorientation/issues/83#issuecomment-544182954 using your GitHub account
Received on Saturday, 19 October 2019 18:14:14 UTC

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