Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed rare animation date error with looping

Benjamin36c94abfd78a
diff --git a/web/js/animation/wv.anim.ui.js b/web/js/animation/wv.anim.ui.js
index 9cf15b45a..3989ae220 100644
--- a/web/js/animation/wv.anim.ui.js
+++ b/web/js/animation/wv.anim.ui.js
@@ -292,9 +292,7 @@ wv.anim.ui = wv.anim.ui || function(models, ui) {
var day = date.getDate() + 1;
var newDateDay = newDate.getDate();
var month = date.getMonth();
- if(day < newDateDay) {
- newDate = self.nextDate(newDate);
- }
+
if(interval !== 'day' || day > 27) {
day = 27;
}