xzdarcy / react-timeline-editor

react-timeline-editor is a react component used to quickly build a timeline animation editor.
https://zdarcy.com/
MIT License
347 stars 93 forks source link

Timeline not scrolling to right based on time #9

Closed vijeeshin closed 1 year ago

vijeeshin commented 1 year ago

First of all, Great work. Hi, I am using React Player as my video source, based on the lib, I am setting the timeline time from the react player output. My auto scroll prop of react-timeline-editor is true, but the timeline not scrolling to the right with respect to the time from the video. Please help.

xzdarcy commented 1 year ago

First of all, Great work. Hi, I am using React Player as my video source, based on the lib, I am setting the timeline time from the react player output. My auto scroll prop of react-timeline-editor is true, but the timeline not scrolling to the right with respect to the time from the video. Please help.

AutoScroll is used for scrolling while dragging. Scrolling by time when playing is another set of logic. Therefore, added TimelineState.setScrollLeft attribute, allow custom scrollLeft on demand. Released version 0.0.5. You can refer to this example:demo

vijeeshin commented 1 year ago

@xzdarcy Thanks i will try

vijeeshin commented 1 year ago

work like a charm, Thank you for your effort