-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScrollView does not respect pointerEvents: "box-none"
#20897
Comments
It looks like you are using an older version of React Native. Please update to the latest release, v0.56 and verify if the issue still exists. The ":rewind:Old Version" label will be removed automatically once you edit your original post with the results of running |
I can confirm this does not work on 0.56 |
I'm having the same issue on 0.57.5 |
In case someone is searching for a workaround, you can put the underlying container inside the ScrollView as the first child. Then, set |
@buzzb0x would you mind expanding on this a bit. Using |
@buzzb0x How does your margin solution differ from @jjenzz solution regarding the disability to apply pointerEvents="none"? Is there any chance you could post a code snippet to show how you got it to work for yourself? |
Frankly the behavior was too hacky to maintain. I ended up changing my UI plans, which is very frustrating… Any Facebook product can definitely be marked as not reliable. |
I too was about to change my UI plans and then I found react-native-touch-through-view |
I was able to repro this on 0.59 with the example in the snack. |
The same problem, any estimate? @TheSavior why is it low-priority? UI pattern above is very popular nowadays |
@barnesheaton Could you share example? I can't make it work |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Environment
Snack uses React Native 0.55.4
Description
When applying
box-none
aspointerEvents
prop onScrollView
I understood that I would be able to click through theScrollView
to any underlaying components if its child container did not fill theScrollView
. This does not appear to work. I can click the child container elements as expected but not the underlaying content.Reproducible Demo
https://snack.expo.io/HkE9LeVw7
The text was updated successfully, but these errors were encountered: