diff --git a/src/js/pannellum.js b/src/js/pannellum.js
index <HASH>..<HASH> 100644
--- a/src/js/pannellum.js
+++ b/src/js/pannellum.js
@@ -187,7 +187,7 @@ controls.orientation.className = 'pnlm-orientation-button pnlm-sprite pnlm-contr
 if (window.DeviceOrientationEvent) {
     window.addEventListener('deviceorientation', function(e) {
         window.removeEventListener('deviceorientation', this);
-        if (e)
+        if (e && e.alpha !== null && e.beta !== null && e.gamma !== null)
             controls.container.appendChild(controls.orientation);
     });
 }
Don't show device orientation button on desktop Chrome.