Browse Source

When setting view via API, reset timer for auto rotate (fixes #664).

pull/668/merge
Matthew Petroff 6 years ago
parent
commit
8b5e36e9b0
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/js/pannellum.js

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

@@ -2399,6 +2399,7 @@ this.setPitch = function(pitch, animated, callback, callbackArgs) {
} else { } else {
config.pitch = pitch; config.pitch = pitch;
} }
latestInteraction = Date.now();
animateInit(); animateInit();
return this; return this;
}; };
@@ -2467,6 +2468,7 @@ this.setYaw = function(yaw, animated, callback, callbackArgs) {
} else { } else {
config.yaw = yaw; config.yaw = yaw;
} }
latestInteraction = Date.now();
animateInit(); animateInit();
return this; return this;
}; };
@@ -2528,6 +2530,7 @@ this.setHfov = function(hfov, animated, callback, callbackArgs) {
} else { } else {
setHfov(hfov); setHfov(hfov);
} }
latestInteraction = Date.now();
animateInit(); animateInit();
return this; return this;
}; };


Loading…
Cancel
Save