Skip to content

Commit

Permalink
Ignore autoRotateInactivityDelay if autoRotate isn't set (#1222).
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetroff committed Jul 4, 2024
1 parent 011497a commit 83084e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/pannellum.js
Original file line number Diff line number Diff line change
Expand Up @@ -1552,7 +1552,7 @@ function animate() {
prevTime = undefined;
var autoRotateStartTime = config.autoRotateInactivityDelay -
(Date.now() - latestInteraction);
if (autoRotateStartTime > 0) {
if (autoRotateStartTime > 0 && autoRotateSpeed) {
autoRotateStart = setTimeout(function() {
config.autoRotate = autoRotateSpeed;
_this.lookAt(origPitch, undefined, origHfov, 3000);
Expand Down

0 comments on commit 83084e8

Please sign in to comment.