Interactive interface for browsing global, full-resolution satellite imagery
fix timeline debounce issues
Jason Kent7bf8126ea7c5
diff --git a/web/js/containers/timeline/timeline.js b/web/js/containers/timeline/timeline.jsindex cc9761295..7551f561e 100644--- a/web/js/containers/timeline/timeline.js+++ b/web/js/containers/timeline/timeline.js@@ -119,8 +119,7 @@ class Timeline extends React.Component {// left/right arrowsconst throttleSettings = { leading: true, trailing: false };- this.throttleSelectDate = lodashThrottle(selectDate, 100, throttleSettings);- this.debounceDraggerDateUpdate = lodashDebounce(this.onDateChange, 200);+ this.debounceDateUpdate = lodashDebounce(selectDate, 8);// animation dragger updatesthis.debounceOnUpdateStartDate = lodashDebounce(onUpdateStartDate, 30);@@ -748,7 +747,7 @@ class Timeline extends React.Component {draggerTimeState: newDate || draggerTimeState,});if (newDate) {- this.debounceDraggerDateUpdate(newDate, 'selected');+ this.onDateChange(newDate, 'selected');}} else {this.setState({@@ -758,7 +757,7 @@ class Timeline extends React.Component {draggerTimeStateB: newDate || draggerTimeStateB,});if (newDate) {- this.debounceDraggerDateUpdate(newDate, 'selectedB');+ this.onDateChange(newDate, 'selectedB');}}}@@ -886,7 +885,7 @@ class Timeline extends React.Component {draggerTimeStateB: dateISOFormatted,});}- this.throttleSelectDate(dateObj, draggerSelected);+ this.debounceDateUpdate(dateObj, draggerSelected);}handleSelectNowButton = () => {