From 017a78d2d1a4bc0440e7aaf21950a92d0a250512 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 7 Nov 2018 15:58:23 +0100 Subject: [PATCH] Use the right device orientation property in example --- examples/device-orientation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/device-orientation.js b/examples/device-orientation.js index 11197e5651..a01ac6f38a 100644 --- a/examples/device-orientation.js +++ b/examples/device-orientation.js @@ -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);