Browse Source

Add method to check if device orientation control is active (implements #524).

tags/2.4.0
Matthew Petroff 6 years ago
parent
commit
14a7032a52
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/js/pannellum.js

+ 10
- 0
src/js/pannellum.js View File

@@ -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. * Subscribe listener to specified event.
* @memberof Viewer * @memberof Viewer
* @instance * @instance


Loading…
Cancel
Save