Fix bug where ScrollView would stop overscrolled by a bit on fling
Summary: This bug was introduced with the bounce-back bug fix. We need to actually set the scroll position to the max scroll position if we've gone over otherwise it can get stuck. Reviewed By: lexs Differential Revision: D4118084 fbshipit-source-id: 41a927a40000c526414096c9385f8bd3cbd907f3
This commit is contained in:
parent
8287e3e83f
commit
f2d3113c1d
|
@ -332,6 +332,7 @@ public class ReactScrollView extends ScrollView implements ReactClippingViewGrou
|
||||||
getChildAt(0).getHeight() - (getHeight() - getPaddingBottom() - getPaddingTop()));
|
getChildAt(0).getHeight() - (getHeight() - getPaddingBottom() - getPaddingTop()));
|
||||||
if (scrollY >= scrollRange) {
|
if (scrollY >= scrollRange) {
|
||||||
mScroller.abortAnimation();
|
mScroller.abortAnimation();
|
||||||
|
scrollY = scrollRange;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue