Pārlūkot izejas kodu

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

pull/668/merge
Matthew Petroff pirms 6 gadiem
vecāks
revīzija
8b5e36e9b0
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. +3
    -0
      src/js/pannellum.js

+ 3
- 0
src/js/pannellum.js Parādīt failu

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


Notiek ielāde…
Atcelt
Saglabāt