lkytal / SmoothScroll

Smooth scrolling code editor for the Visual Studio 2013, 2015, 2017 and 2019
https://lkytal.github.io/SmoothScroll/
GNU Affero General Public License v3.0
34 stars 6 forks source link

Custom animation speed #26

Open maddouri opened 5 years ago

maddouri commented 5 years ago

I am currently using this extension with Visual Studio 2019 and I find that the animation is rather slow, even if I set the "Animation speed" parameter to "Fast".

Could you please make it possible to have a finer-grained control over the animation speed by, for example, allowing users to enter a (floating-point?) number as the animation speed instead of choosing between "Slow", "Normal" and "Fast" ?

If you want to still keep the above-mentioned 3 options (for backward-compatibility), perhaps you could add a 4th option named "Custom" which would create a new "Animation speed value" property in which users can enter a custom value for the animation speed that they prefer?

Thank you in advance for considering this request 😊

lkytal commented 5 years ago

Good suggestion, but may take a while as custom speeds need to recalculate some animation parameter.

maddouri commented 5 years ago

Thanks for your reply. That makes sense.

I think that it might still be interesting to test in order to see whether the latency introduced by the animation computation is actually detrimental to the user experience.

That being said, if allowing the user to have more control over the animation parameters would result in a significant number of unnecessary recalculations, what do you think of caching the results of those calculations somewhere in order to minimize CPU usage and, hopefully, speed things up?