瀏覽代碼

Add stopMovement to stop all movement

pull/688/head
Will Calderbank 6 年之前
父節點
當前提交
2f66d187a1
共有 1 個檔案被更改,包括 10 行新增0 行删除
  1. +10
    -0
      src/js/pannellum.js

+ 10
- 0
src/js/pannellum.js 查看文件

@@ -2713,6 +2713,16 @@ this.stopAutoRotate = function() {
};

/**
* Stops all movement
* @memberof Viewer
* @instance
*/
this.stopMovement = function() {
stopAnimation() {
speed = {'yaw': 0, 'pitch': 0, 'hfov': 0};
}

/**
* Returns the panorama renderer.
* @memberof Viewer
* @instance


Loading…
取消
儲存