diff --git a/src/components/Timeline.jsx b/src/components/Timeline.jsx index a107f55..61a2c11 100644 --- a/src/components/Timeline.jsx +++ b/src/components/Timeline.jsx @@ -270,16 +270,16 @@ class Timeline extends React.Component { /> this.getEventX(e)} - getEventY={(e) => this.getEventY(e)} + getEventX={this.getDatetimeX} + getCategoryY={this.getCategoryY} transitionDuration={this.state.transitionDuration} /> onSelect(datetime.events)} + onClick={() => onSelect(events)} > { +const TimelineMarkers = ({ getEventX, getCategoryY, transitionDuration, selected }) => { function renderMarker(event) { return ( @@ -28,4 +28,4 @@ const TimelineMarkers = ({ getEventX, getEventY, transitionDuration, selected }) ); } -export default TimelineMarkers; \ No newline at end of file +export default TimelineMarkers;