Merge pull request #8892 from fredj/do_typo

Use the right device orientation property in example
This commit is contained in:
Frédéric Junod
2018-11-12 11:57:00 +01:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ gn.init().then(function() {
gn.start(function(event) {
const center = view.getCenter();
const resolution = view.getResolution();
const alpha = toRadians(event.do.beta);
const alpha = toRadians(event.do.alpha);
const beta = toRadians(event.do.beta);
const gamma = toRadians(event.do.gamma);