We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a18d18 commit 75c210dCopy full SHA for 75c210d
ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java
@@ -314,15 +314,11 @@ public void fling(int velocityY) {
314
//
315
// Hence, we can use the absolute value from whatever the OS gives
316
// us and use the sign of what mOnScrollDispatchHelper has tracked.
317
- //final int correctedVelocityY = (int)(Math.abs(velocityY) * Math.signum(mOnScrollDispatchHelper.getYFlingVelocity()));
318
-
319
- //BEGIN pavel.rotek wrong velocity on old phones
320
float signum = Math.signum(mOnScrollDispatchHelper.getYFlingVelocity());
321
if (signum == 0) {
322
signum = Math.signum(velocityY);
323
}
324
final int correctedVelocityY = (int)(Math.abs(velocityY) * signum);
325
- //END
326
327
if (mPagingEnabled) {
328
flingAndSnap(correctedVelocityY);
0 commit comments