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

Tapping outside of pie chart intercepts the gesture #1307

Open
jtkeyva opened this issue Apr 11, 2023 · 5 comments
Open

Tapping outside of pie chart intercepts the gesture #1307

jtkeyva opened this issue Apr 11, 2023 · 5 comments
Labels
bug Something isn't working Pie Chart

Comments

@jtkeyva
Copy link

jtkeyva commented Apr 11, 2023

** Don't make a duplicate issue.
You can search in issues to make sure there isn't any already opened issue with your concern.

Describe the bug
I have 2 pie charts stacked on top of eachother. I cannot intercept the gesture on the bottom pie chart. I set up a print statement to get the index for each segment on the top one and i notice it prints -1. So that tells me the transparent area behind the piechart is intercepting the getstures.

To Reproduce
Put a pie chart on top of a box (or any other widget) of the same width as the pie chart that has a gesture recognizer. Try and get the box underneath to respond to touches just outside of the circular pie chart. The box underneath does not respond.

Screenshots
If applicable, add screenshots, or videoshots to help explain your problem.

Versions
Latest
Latest

@imaNNeo imaNNeo added bug Something isn't working Pie Chart labels Apr 11, 2023
@aabirsark
Copy link

I think you can solve this problem by wrapping IgnorePointer() on the top pie chart !

@jtkeyva
Copy link
Author

jtkeyva commented Jun 6, 2023

@aabirsark thanks, but wouldn't that disable any interaction on the pie chart itself? i'm looking to be able to tap each slice of the pie as well as the widget that surrounds it

@aabirsark
Copy link

@jtkeyva what I would do in that case is too use a clipper and clip the piechart till you want the interaction

@jtkeyva
Copy link
Author

jtkeyva commented Jun 6, 2023

ah so clip will allow taps to pass through the circular edges?

@samir7osny
Copy link

check this PR #1504

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Pie Chart
Projects
None yet
Development

No branches or pull requests

4 participants