- Home /
Braking distance of ScrollRect with inertia enabled
Hello! I'm hoping someone will be able to help me find out the braking distance of a ScrollRect with inertia enabled when the OnEndDrag event is invoked. I know I can get my initial velocity from the ScrollRect but I can't figure out how to find how far it will travel. I need to calculate this distance so that I can figure out if the end of the trajectory will bring me near an element to snap on. If it does, I would modify the velocity of the ScrollRect to make it scroll onto the correct element smoothly. Thank you!
Your answer
Follow this Question
Related Questions
[Solved] need help regarding autolayout in scrollrect 1 Answer
Scrollable zooming list 0 Answers
Scroll A Text Once It Reaches The End Of The Viewport 0 Answers
How can I programmatically tween a Scroll View to a desired position? 0 Answers
Scroll View: Is there a way to discriminate and accept only certain PointerEvents? 0 Answers