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:
Andy Street 2016-11-02 10:43:53 -07:00 committed by Facebook Github Bot
parent 8287e3e83f
commit f2d3113c1d
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }
} }