Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

#2818 animation should stop when add layers menu is opened

Jason Kent99bfecb7a4ae
diff --git a/web/js/containers/sidebar/footer-content.js b/web/js/containers/sidebar/footer-content.js
index 4f18c507c..0ef7197a4 100644
--- a/web/js/containers/sidebar/footer-content.js
+++ b/web/js/containers/sidebar/footer-content.js
@@ -16,6 +16,7 @@ import ProductPicker from '../../components/layer/product-picker/product-picker'
import { openCustomContent } from '../../modules/modal/actions';
import { toggleListAll } from '../../modules/natural-events/actions';
import { DATA_GET_DATA_CLICK } from '../../modules/data/constants';
+import { stop as stopAnimationAction } from '../../modules/animation/actions';
class FooterContent extends React.Component {
constructor(props) {
@@ -157,6 +158,7 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(toggleListAll());
},
addLayers: () => {
+ dispatch(stopAnimationAction());
dispatch(
openCustomContent('LAYER_PICKER_COMPONENT', {
headerText: null,