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

PieTouchData is missing simple "button pressed"-type gesture #1801

Open
chris-rutkowski opened this issue Dec 9, 2024 · 0 comments
Open

Comments

@chris-rutkowski
Copy link

PieTouchData in pie chart, has touchCallback property which contains FlTouchEvent (and response).

That event is of multiple types gesture, pan, up/down, drag, long press up down...

The event has a property isInterestedForInteractions, but many of events have the value true there. When PieChart is displayed on the scrollable view, user attempting to scroll the screen, touching the chart is firing those events with falsely assumed interested for interactions.

I sincerely believe most of us need to handle button-press like event - touch and release the finger without significant movement.
Could we have a easier callback?

Cherry on the top. That callback contains a PieTouchResponse, which has a nullable section, which can have a -1 index. Wouldn't it be simpler, to have a callback directly in PieChartSectionData object?

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