fix: use FlTapUpEvent to reset pie chart selection

This commit is contained in:
2025-05-03 14:49:11 +03:00
parent 6bae5b1b50
commit 110447590e
@@ -52,7 +52,8 @@ class SpendingPieChart extends StatelessWidget {
pieTouchResponse == null ||
pieTouchResponse.touchedSection == null) {
// If touch ends or no section is touched, reset selection
if (event is FlPointerUpEvent || event is FlPanEndEvent) {
// Используем FlTapUpEvent вместо FlPointerUpEvent
if (event is FlTapUpEvent || event is FlPanEndEvent) {
onSelectPieCategory(-1);
}
return;