Skip to content

fix(web): allow backgroundInteractionEnabled to work by setting pointerEvents #431

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Silvallis
Copy link

Adds pointerEvents: 'box-none' to the GestureHandlerRootView when backgroundInteractionEnabled is true, allowing background elements to receive pointer events on Web, consistent with Android behavior.

This PR fixes a bug where backgroundInteractionEnabled does not allow pointer events to pass through on Web. The issue was due to missing pointerEvents: 'box-none' on the GestureHandlerRootView.

Fixes #430

Tested on:

  • ✅ Android
  • ✅ Web

…erEvents

Adds pointerEvents: 'box-none' to the GestureHandlerRootView when backgroundInteractionEnabled is true, allowing background elements to receive pointer events on Web, consistent with Android behavior.
Copy link

vercel bot commented Apr 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rnas ❌ Failed (Inspect) Apr 29, 2025 8:18am

@Silvallis
Copy link
Author

Hi! It looks like the Vercel deployment failed, but I can't see the logs since I'm not a collaborator on the project. If you have a moment to check the build error, I’d be happy to help resolve it. Let me know if there’s anything I can do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Web: backgroundInteractionEnabled not working
1 participant