Skip to content

Commit 75c210d

Browse files
authored
Update ReactScrollView.java
1 parent 7a18d18 commit 75c210d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollView.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,11 @@ public void fling(int velocityY) {
314314
//
315315
// Hence, we can use the absolute value from whatever the OS gives
316316
// 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
320317
float signum = Math.signum(mOnScrollDispatchHelper.getYFlingVelocity());
321318
if (signum == 0) {
322319
signum = Math.signum(velocityY);
323320
}
324321
final int correctedVelocityY = (int)(Math.abs(velocityY) * signum);
325-
//END
326322

327323
if (mPagingEnabled) {
328324
flingAndSnap(correctedVelocityY);

0 commit comments

Comments
 (0)