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

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