diff --git a/src/components/Timeline.jsx b/src/components/Timeline.jsx index 11b9d87..61e91aa 100644 --- a/src/components/Timeline.jsx +++ b/src/components/Timeline.jsx @@ -57,12 +57,6 @@ class Timeline extends React.Component { if (nextProps.dimensions.trackHeight !== this.props.dimensions.trackHeight) { this.computeDims() } - - if (hash(nextProps.app.selected) !== hash(this.props.app.selected)) { - if (!!nextProps.app.selected && nextProps.app.selected.length > 0) { - this.onCenterTime(nextProps.app.selected[0].datetime) - } - } } addEventListeners () { diff --git a/src/components/presentational/Map/Events.jsx b/src/components/presentational/Map/Events.jsx index f2fe193..588d4c0 100644 --- a/src/components/presentational/Map/Events.jsx +++ b/src/components/presentational/Map/Events.jsx @@ -21,6 +21,11 @@ function MapEvents ({ return [x, y] } + function handleEventSelect (e, location) { + const events = e.shiftKey ? selected.concat(location.events) : location.events + onSelect(events) + } + function renderBorder () { return ( @@ -135,7 +140,7 @@ function MapEvents ({ onSelect(location.events)} + onClick={(e) => handleEventSelect(e, location)} > {renderLocationSlicesByCategory(location)} {extraRender ? extraRender() : null}