Interactive interface for browsing global, full-resolution satellite imagery
Reapply tour scroll-to logic #1623
Benjamin King50abfeb6ed46
diff --git a/web/js/components/tour/modal-tour-in-progress.js b/web/js/components/tour/modal-tour-in-progress.jsindex 69dbefff4..6cefc92da 100644--- a/web/js/components/tour/modal-tour-in-progress.js+++ b/web/js/components/tour/modal-tour-in-progress.js@@ -25,6 +25,9 @@ class ModalInProgress extends React.Component {this.props.endTour();}}+ componentDidUpdate() {+ if (this.refs.stepContent) this.refs.stepContent.parentNode.scrollTop = 0;+ }render() {var { description } = this.props;diff --git a/web/js/containers/tour.js b/web/js/containers/tour.jsindex de9eb2006..41c978cf9 100644--- a/web/js/containers/tour.js+++ b/web/js/containers/tour.js@@ -85,7 +85,11 @@ class Tour extends React.Component {var uri = `${origin}${pathname}config/metadata/stories/${currentStory.id}/${description}`;- this.setState({ isLoadingMeta: true, metaLoaded: false });+ this.setState({+ isLoadingMeta: true,+ metaLoaded: false,+ description: 'Loading story description...'+ });fetch(uri).then(res => (res.ok ? res.text() : errorMessage)).then(body => {