We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a92dab commit 14efa6dCopy full SHA for 14efa6d
packages/react-native-web/src/exports/ScrollView/index.js
@@ -66,7 +66,12 @@ const ScrollView = createReactClass({
66
},
67
68
getScrollableNode(): any {
69
- return findNodeHandle(this._scrollViewRef);
+ // when window scrolling is enabled, the scroll node is not the div, but the full page
70
+ if (this.props.useWindowScrolling) {
71
+ return window.document.documentElement;
72
+ } else {
73
+ return findNodeHandle(this._scrollViewRef);
74
+ }
75
76
77
getInnerViewNode(): any {
0 commit comments