Add absolute device orientation fallback when ROTATION_VECTOR is not available.
Add fallback to accelerometer + magnetometer for absolute device orientation (ondeviceorienationabsolute) when ROTATION_VECTOR is not available. The ROTATION_VECTOR is not available on some devices (e.g. Samsung Galaxy A7, see crbug.com/682535). The fallback approach is similar to what already happens for relative device orientation. BUG=682535 TEST=http://timvolodine.github.io/deviceorientation-test/ Change-Id: I7b01f803b1edfd3d7062f5f165c75796a59ca070 Reviewed-on: https://chromium-review.googlesource.com/574491 Commit-Queue: Tim Volodine <timvolodine@chromium.org> Reviewed-by:Reilly Grant <reillyg@chromium.org> Reviewed-by:
Jun Cai <juncai@chromium.org> Cr-Commit-Position: refs/heads/master@{#488266}
Showing
Please register or sign in to comment