Use the right device orientation property in example

This commit is contained in:
Frederic Junod
2018-11-07 15:58:23 +01:00
parent 7321541de8
commit 017a78d2d1

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);