Parcourir la source

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

tags/2.5.0
Matthew Petroff il y a 5 ans
Parent
révision
d02cedcc4e
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +2
    -1
      doc/json-config-parameters.md
  2. +2
    -0
      src/js/pannellum.js

+ 2
- 1
doc/json-config-parameters.md Voir le fichier

@@ -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 Voir le fichier

@@ -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.


Chargement…
Annuler
Enregistrer