Skip to content
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

Question: How to apply .allowsHitTesting(false) to SVGNode? #70

Open
TemurUsmanov opened this issue Feb 4, 2025 · 1 comment
Open

Comments

@TemurUsmanov
Copy link

Great library, thanks for it.
I have circles in svg, and text on top. When I set onTabGesture for the circle, then clicking on it does not work, if you click exactly on the text, apparently svgText intercepts the click and it does not work. At the same time, if you set onTabGesture for the text, it also does not work. I tried to pass in svg pointer-events="none" - did not help. I tried to use removeAllGestures() - did not help.

Somehow I want to apply .allowsHitTesting(false) to SVGText, how can I do this?

Image
@TemurUsmanov
Copy link
Author

to be honest it looks like a bug to me. Because the click event is intercepted, but you can't add onTabGesture or skip it.

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

No branches or pull requests

1 participant