namespace-ee / react-calendar-timeline

A modern and responsive react timeline component.
MIT License
1.91k stars 613 forks source link

Controlled visibleTimeStart and visibleTimeEnd not behaving as expected #842

Open roryACS opened 2 years ago

roryACS commented 2 years ago

Describe the bug Timeline min and max time are being respected by the TimelineHeader but not by the timeline body itself, this allows scroll for 1/3 canvas width beyond the min/max.

To Reproduce This affects the Controlled Visible Time No Scroll demo, horizontal scroll on the trackpad will allow scrolling 1 day either side of the fixed day, total 3 days. The expected behaviour is the view being fixed to the selected day.

Library Version 0.26.6 and up, still present in most recent npm version 0.27.0