Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix bug with toggling and playing animation

ZachTRice4d3e71f135e3
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.js
index a0a2a1f7f..a1d1a3c9c 100644
--- a/web/js/components/tour/modal-tour-in-progress.js
+++ b/web/js/components/tour/modal-tour-in-progress.js
@@ -284,7 +284,7 @@ class ModalInProgress extends React.Component {
if (currentState.ab === 'on' && !document.getElementById('timeline-footer').classList.contains('wv-anim-active')) {
models.anim.deactivate();
ui.anim.widget.toggleAnimationWidget();
- } else if (document.getElementById('timeline-footer').classList.contains('wv-anim-active')) {
+ } else if ((currentState.ab === 'off' || !currentState.ab) && document.getElementById('timeline-footer').classList.contains('wv-anim-active')) {
models.anim.activate();
ui.anim.widget.toggleAnimationWidget();
}