瀏覽代碼

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

tags/2.4.0
Matthew Petroff 6 年之前
父節點
當前提交
14a7032a52
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. +10
    -0
      src/js/pannellum.js

+ 10
- 0
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


Loading…
取消
儲存