mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
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()));
|
||||
if (scrollY >= scrollRange) {
|
||||
mScroller.abortAnimation();
|
||||
scrollY = scrollRange;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user