Browse Source

Add stopMovement to stop all movement (#690)

Add `stopMovement` to stop all movement
pull/707/head
Will Calderbank 6 years ago
committed by Matthew Petroff
parent
commit
4242e7c53a
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