mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 09:12:06 +08:00
20d95ed1290571817c6a3a963e2927962125b217
Summary:
When calculating how far the user has scrolled, it is necessary to know the content insets where:
number of pixels scrolled = content offset + leading content inset for the scroll axis
This diff adds the contentInset field to native scroll events.
Closes https://github.com/facebook/react-native/pull/737
Github Author: James Ide <ide@jameside.com>
Test Plan: Imported from GitHub, without a `Test Plan:` line.
Description
Languages
JavaScript
40.2%
Java
24.7%
Objective-C
14.3%
C++
13.5%
Objective-C++
3.9%
Other
3.3%