Question by
Phedg1 · Dec 10, 2016 at 07:15 AM ·
scrollviewviewportinertia
How To Set ScrollRect.NormalizedPosition And Continue Existing Inertia
I'm using a ScrollRect where I have to change the size of the ScrollRect.Viewport.GetComponent.rect.height at some points. This will adjust the ScrollRect.NormalizedPosition and at times mess with the inertia of ScrollRect.contents forcing them to come to an abrupt halt. Weirdly, it only seems to happen in the top third of the scroll o_O . Anyway, I was wondering if there was any variable I could use to find and reset the inertia of a moving ScrollRect after I have changed the viewport height? Alternatively, if I reset the normalizedPosition to what it used to be, it will remove all current inertia and stop anyway.
Thanks, Phedg1
Comment