monterosalondon / react-native-parallax-scroll

Parallax scroll view for react-native
MIT License
555 stars 62 forks source link

Allow for pointerEvents to be fired close the header #37

Open OskarHeden opened 6 years ago

OskarHeden commented 6 years ago

I've experienced that none of my pointerEvents are firing close to my fixed header after the Parallax foreground had been collapsed. When using the inspector I found that the entire parallaxHeight was still assigned to the wrapperView of the foreground, causing it to render an invisible view on top of my scrollable component (in this case a Webview) which then blocks all click events in my webview under that area.

Here is an image depicting the problem (the highlighted area is unclickable):

blocking_view

The PR includes minor changes to the height of the view to match the height of the collapsed header(headerHeight in props) when the parallax is collapsed after scrolling down.

EyMaddis commented 5 years ago

Already solved/solvable. See #23 and the PR #24