Quickly reverse direction when smooth scrolling#139
Conversation
|
Forgive me if I see this wrong, but if you only test if You're assuming here that the previous direction gave a positive result in that calculation. Effectively, what you're doing here is dampening the direction that produces a negative result. |
No, it works like this: the value is only negative if the signs are opposite - your input is the opposite of the scroll energy. Try it for yourself. |
|
indeed feels better, i never noticed it because i dont have a huge smoothing amount active (8, lower smoothens more) and so it would invert direction rather quickly. but with more smoothing, this is a night and day difference |
First affects everybody: if you're at the top or bottom of the page, it will keep imparting scroll energy that takes time to expend. This makes the UI feel laggy and unresponsive if you've spun the scrollwheel to the top or bottom and want to start moving the other direction and it's still trying to scroll past the page.
Second affects people with enough games that they have pages of scroll. If you've scrolled to the game you're looking for it will keep coasting on past, and attempting to scroll back up doesn't work until you've imparted enough energy in the opposite direction. This can lead to overshoot.