diff --git a/src/js/pannellum.js b/src/js/pannellum.js index 27d2cdf..9fc8d0b 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -2818,6 +2818,16 @@ this.startOrientation = function() { } /** + * Check if device orientation control is currently activated. + * @memberof Viewer + * @instance + * @returns {boolean} True if active, else false + */ +this.isOrientationActive = function() { + return Boolean(orientation); +} + +/** * Subscribe listener to specified event. * @memberof Viewer * @instance