Interactive interface for browsing global, full-resolution satellite imagery
fix tour scrolling #2196
Benjamin King28be769754ef
diff --git a/web/css/tour.css b/web/css/tour.cssindex 42d4e6cea..2a94c36ed 100644--- a/web/css/tour.css+++ b/web/css/tour.css@@ -65,7 +65,9 @@border: 0;border-radius: 0;}-+.tour-start .scrollbar-visible .modal-body {+ padding-right: 10px;+}.tour-start .modal-header {color: #fff;background-color: #00457b;diff --git a/web/js/components/tour/modal-tour-start.js b/web/js/components/tour/modal-tour-start.jsindex 4906c2c47..d4365f4d7 100644--- a/web/js/components/tour/modal-tour-start.js+++ b/web/js/components/tour/modal-tour-start.js@@ -12,6 +12,7 @@ import {import TourIntro from './content-intro';import TourBoxes from './tour-boxes';import util from '../../util/util';+import Scrollbars from '../util/scrollbar';class ModalStart extends React.Component {constructor(props) {@@ -74,14 +75,19 @@ class ModalStart extends React.Component {<ModalHeader toggle={this.props.endTour} charCode="">Welcome to Worldview!</ModalHeader>- <ModalBody>- <TourIntro toggleModalStart={this.props.toggleModalStart} />- <TourBoxes- stories={this.props.stories}- storyOrder={this.props.storyOrder}- selectTour={this.props.selectTour}- />- </ModalBody>+ <Scrollbars style={{ maxHeight: this.props.height - 200 + 'px' }}>++ <ModalBody>++ <TourIntro toggleModalStart={this.props.toggleModalStart} />+ <TourBoxes+ stories={this.props.stories}+ storyOrder={this.props.storyOrder}+ selectTour={this.props.selectTour}+ />++ </ModalBody>+ </Scrollbars >{util.browser.localStorage && (<ModalFooter><InputGroup>diff --git a/web/js/containers/tour.js b/web/js/containers/tour.jsindex 71e443e41..31b656f83 100644--- a/web/js/containers/tour.js+++ b/web/js/containers/tour.js@@ -105,7 +105,7 @@ class Tour extends React.Component {var errorMessage = '<p>There was an error loading this description.</p>';var uri = `${origin}${pathname}config/metadata/stories/${currentStory.id- }/${description}`;+ }/${description}`;this.setState({isLoadingMeta: true,metaLoaded: false,@@ -189,9 +189,9 @@ class Tour extends React.Component {newStep,currentStory.steps.length,currentStory.steps[newStep - 1].stepLink +- '&tr=' +- currentStoryId +- transition,+ '&tr=' ++ currentStoryId ++ transition,this.props.config,this.props.renderedPalettes);@@ -218,9 +218,9 @@ class Tour extends React.Component {newStep,currentStory.steps.length,currentStory.steps[newStep - 1].stepLink +- '&tr=' +- currentStoryId +- transition,+ '&tr=' ++ currentStoryId ++ transition,this.props.config,this.props.renderedPalettes);@@ -316,6 +316,7 @@ class Tour extends React.Component {stories={stories}storyOrder={storyOrder}modalStart={modalStart}+ height={screenHeight}checked={util.browser.localStorage? !!localStorage.getItem('hideTour')