浏览代码

Add stopMovement to stop all movement (#690)

Add `stopMovement` to stop all movement
pull/707/head
Will Calderbank 6 年前
committed by Matthew Petroff
父节点
当前提交
4242e7c53a
共有 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


正在加载...
取消
保存