3 ms·
Firefox is producing this warning on the `window.addEventListener('deviceorientation', onDeviceOrientation);` line: > Use of the orientation sensor is deprecat
by chrismorgan 6y ago
Firefox is producing this warning on the `window.addEventListener('deviceorientation', onDeviceOrientation);` line:
> Use of the orientation sensor is deprecated.
No further information. I see no mention of deprecation at https://developer.mozilla.org/en-US/docs/Web/API/Window/deviceorientation_event https://developer.mozilla.org/en-US/docs/Web/API/Window/devi..., so I’m not sure of the true state of affairs. It could have been accidentally tagged along with other functionality that is deprecated.
- afavour 6y agoI believe the desire is for people to use the Sensor API instead now: https://developer.mozilla.org/en-US/docs/Web/API/Sensor_APIs https://developer.mozilla.org/en-US/docs/Web/API/Sensor_APIs
- lilgreenland 6y agohmmmm firefox is missing this API as well