Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fixed problem with cached item being removed at the wrong time

Benjaminc112703401a1
diff --git a/web/js/animation/wv.anim.ui.js b/web/js/animation/wv.anim.ui.js
index 40a1b2b1a..c21965b53 100644
--- a/web/js/animation/wv.anim.ui.js
+++ b/web/js/animation/wv.anim.ui.js
@@ -242,7 +242,7 @@ wv.anim.ui = wv.anim.ui || function(models, ui) {
if(preload[preloadArray[0]] &&
wv.util.objectLength(preload) > queueLength + (queueLength / 2) + 1 &&
pastDates[preloadArray[0]] &&
- self.isInToPlayGroup(preloadArray[0])) {
+ !self.isInToPlayGroup(preloadArray[0])) {
key = preloadArray.shift();
delete preload[key];
delete pastDates[key];