Browse Source

Document that the viewer pans to the initial pitch before starting auto rotation (see #744).

tags/2.5.0
Matthew Petroff 5 years ago
parent
commit
d02cedcc4e
2 changed files with 4 additions and 1 deletions
  1. +2
    -1
      doc/json-config-parameters.md
  2. +2
    -0
      src/js/pannellum.js

+ 2
- 1
doc/json-config-parameters.md View File

@@ -52,7 +52,8 @@ counter-clockwise, and negative is clockwise.

Sets the delay, in milliseconds, to start automatically rotating the panorama
after user activity ceases. This parameter only has an effect if the
`autoRotate` parameter is set.
`autoRotate` parameter is set. Before starting rotation, the viewer is panned
to the initial pitch.


### `autoRotateStopDelay` (number)


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

@@ -2689,6 +2689,8 @@ this.setHorizonPitch = function(pitch) {

/**
* Start auto rotation.
*
* Before starting rotation, the viewer is panned to the initial pitch.
* @memberof Viewer
* @instance
* @param {number} [speed] - Auto rotation speed / direction. If not specified, previous value is used.


Loading…
Cancel
Save