react-timeline-editor icon indicating copy to clipboard operation
react-timeline-editor copied to clipboard

What does time_area click constraint mean?

Open halabooda opened this issue 1 year ago • 2 comments

Hello! What's mean this constraint? I cant to give click event on fullwidth screen after scroll

https://github.com/xzdarcy/react-timeline-editor/blob/47a1580a11ce8a5a9d8e6712651ea13910d20094/src/components/time_area/time_area.tsx#L78

halabooda avatar May 23 '24 01:05 halabooda

Sometimes it's clickable, sometimes not, for example open/close Devtools change behavior

halabooda avatar May 23 '24 01:05 halabooda

As far as I see there is an error in the calculation. The scrollLeft is added to 'left' beforehand but then also substracted from the righthand calculation here. So the click-event is always off by the current scrollLeft and fails towards the right end of the timeline. A current workaround for me is to not set maxScaleCount, then it's infinite in the calculation. That causes other issues for me but they are more manageable..

HeChara avatar Sep 01 '25 11:09 HeChara