I added drag resistance at top/bottom bounds to Koen's "ScrollViewBest" project. Would appreciate any other improvements / refactors. It would be awesome if we could get this to a place where it's good enough to be in native framer?
Live demo: https://dl.dropboxusercontent.com/u/811105/ScrollView2.framer/index.html
Wow this feels really great. Let's get this in!
I was actually showing this to a developer who works on qc and he was a little offended that we use springs to emulate the decay animation. If I find time to sit with him I could maybe get the actual math equation in there. He explained to me how it actually works in ios but it went over my head :(
I can add a decay animator :-)
Piggybacking on Cemre's post, I made a similar thing last night: https://www.dropbox.com/sh/xobt4jigs9nlgmh/AAA5Tnnuyi7QKcr6rgGnDYWia?dl=0
I threw it into a class, so you can instantiate a new "InertialScroll" object.
Cemre Güngör Aren't those actually gravitation and friction physics used for this ?
To repost this from line 64++: https://github.com/iamralpht/iamralpht.github.io/blob/master/physics/gravity.js
I occasionally draw back to Ralph Thomas' functions, his doings are a real revealing bless for non-backend ppl like me.
This is so needed in framer.