diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java index 26ac37435934f1..c0014311f9551c 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/scroll/OnScrollDispatchHelper.java @@ -27,8 +27,6 @@ public class OnScrollDispatchHelper { private long mLastScrollEventTimeMs = -(MIN_EVENT_SEPARATION_MS + 1); - private static final float THRESHOLD = 0.1f; // Threshold for end fling - /** * Call from a ScrollView in onScrollChanged, returns true if this onScrollChanged is legit (not a * duplicate) and should be dispatched. @@ -40,11 +38,6 @@ public boolean onScrollChanged(int x, int y) { mPrevX != x || mPrevY != y; - // Skip the first calculation in each scroll - if (Math.abs(mXFlingVelocity) < THRESHOLD && Math.abs(mYFlingVelocity) < THRESHOLD) { - shouldDispatch = false; - } - if (eventTime - mLastScrollEventTimeMs != 0) { mXFlingVelocity = (float) (x - mPrevX) / (eventTime - mLastScrollEventTimeMs); mYFlingVelocity = (float) (y - mPrevY) / (eventTime - mLastScrollEventTimeMs);