react-native/React
Adam Comella deef8aade2 ScrollView: Always fire onScroll event for the resting scroll position
Summary:
When throttling scroll events with `scrollEventThrottle`, `onScroll`
is not guaranteed to be fired for the final scroll position
of the `ScrollView`. This can cause a component to render UI that
is consistent with the resting scroll position of the `ScrollView`.

This commit guarantees that an `onScroll` event will be fired for
the resting scroll position of the `ScrollView`.

**Test plan (required)**

Verified commit fixes a reduced repro. Also tested fix in a larger app.

Adam Comella
Microsoft Corp.
Closes https://github.com/facebook/react-native/pull/7366

Differential Revision: D3269303

Pulled By: javache

fb-gh-sync-id: f68ecb7e9c18d1ac255c6f872fb7eb4aadd07799
fbshipit-source-id: f68ecb7e9c18d1ac255c6f872fb7eb4aadd07799
2016-05-06 03:19:27 -07:00
..
Base Added explicit init to observer modules 2016-05-04 07:07:24 -07:00
Executors Unify source map approach for RA bundles on iOS/Android 2016-04-29 10:16:22 -07:00
Layout Import css-layout measure mode changes from pull request #163 2016-04-12 07:02:29 -07:00
Modules Added explicit init to observer modules 2016-05-04 07:07:24 -07:00
Profiler Added explicit init to observer modules 2016-05-04 07:07:24 -07:00
React.xcodeproj Support the bytecode cache for FBReactKit 2016-04-21 08:59:43 -07:00
Views ScrollView: Always fire onScroll event for the resting scroll position 2016-05-06 03:19:27 -07:00