← Back to release summary

DeviceOrientationEvent and DeviceMotionEvent constructors

Category
Device
Type
New or changed feature
Status
Enabled by default (Chrome 59)
Intent stage
None

Summary

The DeviceOrientationEvent and DeviceMotionEvent constructors are defined by the DeviceOrientation Event Specification but were not were not implemented in Chrome. Firefox has already shipped these constructors as specified.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/DeviceOrientationEvent https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent

Samples: http://w3c-test.org/orientation-event/idlharness.html

View on chromestatus.com