mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00: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.
Languages
C++
35%
Kotlin
22.3%
JavaScript
19.9%
Objective-C++
9.9%
Objective-C
4.6%
Other
8.3%