Comment by jonny_eh
That "just" is doing a looot of work.
Not really. It's just atan2, modulo, and subtraction.
I was going to respond saying "at least it's less work than mimicking modern Apple momentum scrolling..." but in fact I'd argue that's simpler than one might expect as well! https://medium.com/homullus/recreating-native-ios-scroll-and...