xzdarcy / react-timeline-editor

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

How to restrict maximum cursor movement? #27

Closed ShahriarDhruvo closed 10 months ago

ShahriarDhruvo commented 1 year ago

As far as I can tell there is no feature right now which restrict the cursor not to move beyond some point. Like if I do not want my cursor to move beyond 1 minute mark I cannot do that. You can restrict the action's maximum movement by setting maxEnd value. But there is nothing like this for the cursor. Basically what I want that my cursor shouldn't move after the scale has finished. As you can see I set the maxScaleCount to 2m so I want the cursor also not to move beyond that 2m mark but I cannot find anything that do so 😞 Also that 2m text has been chopped out for the reason explained in #26 😅 image

ShahriarDhruvo commented 1 year ago

@xzdarcy can you mention me a workaround for this?

xzdarcy commented 1 year ago

Sorry for being busy with work recently, I will deal with it as soon as possible and let you know

xzdarcy commented 1 year ago

@xzdarcy can you mention me a workaround for this?

I have fixed this, you can try v0.1.9.

ShahriarDhruvo commented 1 year ago

Thanks you can close this one :3