Browse Source

Add stopMovement to stop all movement

pull/690/head
Will Calderbank 6 years ago
parent
commit
35bc4fa381
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/js/pannellum.js

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

@@ -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…
Cancel
Save