acidbubbles / vam-timeline

Advanced and intuitive keyframe animations for Virt-A-Mate
GNU General Public License v3.0
75 stars 17 forks source link

Move by snap amount when right-clicking frame buttons #41

Closed via5 closed 3 years ago

via5 commented 3 years ago

If the snap amount is small and the animation long, it becomes really difficult to click the scrubber to move to a specific time. For example, a 20s animation with a 0.05 snap time makes some frames actually impossible to click. This adds right-click handlers to the < f and f > buttons that move the scrubber by the snap time.

I reused the Clickable component and added an additional rightClick parameter for the callback that defaults to null.

Also, one day I'll remember the tab settings before my commit.

acidbubbles commented 3 years ago

I really need to add zoom there :/ But that's a good idea, I'll check it out when I can!

acidbubbles commented 3 years ago

Added your change, also added 0.001f and 0.01f movement as well as a snap to closest keyframe with the center button on right click. Thanks!