Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

#1906 use the animation.speed var to determine ms for each frame

Jason Kent720013fe620a
diff --git a/web/js/modules/animation/selectors.js b/web/js/modules/animation/selectors.js
index 8b3d589cb..f5eb70d2f 100644
--- a/web/js/modules/animation/selectors.js
+++ b/web/js/modules/animation/selectors.js
@@ -25,7 +25,7 @@ export function getImageArray(
dimensions,
state
) {
- const { proj, map, date, layers, compare } = state;
+ const { animation, proj, map, date, layers, compare } = state;
const { startDate, endDate, url } = gifComponentProps;
const { boundaries, showDates } = gifComponentState;
const { customInterval, interval, customDelta, delta, customSelected } = date;
@@ -81,7 +81,7 @@ export function getImageArray(
a.push({
src: src,
text: showDates ? strDate : '',
- delay: 1000 / interval
+ delay: 1000 / animation.speed
});
current = util.dateAdd(current, increment, intervalAmount);
if (j > 40) {