shedaniel / SmoothScrollingEverywhere

Adds smooth scrolling to every list in Minecraft.
Apache License 2.0
20 stars 19 forks source link

Add option to disable animations #7

Closed juliand665 closed 4 years ago

juliand665 commented 4 years ago

When scrolling with certain trackpads (e.g. apple's), they seem to send a lot more scroll events than your animation code can handle, resulting in jumpy scrolling. In fact, I think they send so many events that you shouldn't need to animate anything at all.

So an easy fix would be to add an option to disable animations entirely while keeping the overscrolling feature. Of course, it would be even better if it would just always work, so I'd still have smooth scrolling with my external mouse's wheel.

shedaniel commented 4 years ago

There is a config for that, you can keep overscrolling with animations disabled.

juliand665 commented 4 years ago

Oh damn, can't believe I missed that. I guess I should have looked into the cloth-config2 folder rather than just looking for something named smooth scrolling.

I set scrollDuration1=1 and that seems to work pretty well. It still doesn't feel as smooth as I hoped, and it overscrolls way too far (more than a full screen), but I think those are problems I'd best look at solving in my own fork or something.

shedaniel commented 4 years ago

You can also access the smooth scrolling everywhere's config by using modmenu, also the correct way to disable animations is to set the easing method to NONE.

juliand665 commented 4 years ago

Nice, that makes more sense. Can confirm those parts work :p