Skip to content

Commit

Permalink
Fix ScatterChart long-press interaction bug (disappears when long-pre…
Browse files Browse the repository at this point in the history
…ssing on the chart), #1318
  • Loading branch information
imaNNeo committed Apr 30, 2023
1 parent 8eca901 commit 300b6b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## newVersion
* **BUGFIX** (by @imaNNeo) Fix PieChart crash on web-renderer html by ignoring `sectionsSpace` when `Path.combine()` does not work (it's flutter engine [issue](https://github.com/flutter/flutter/issues/44572)), #955
* * **BUGFIX** (by @imaNNeo) Fix ScatterChart long-press interaction bug (disappears when long-pressing on the chart), #1318

## 0.62.0
* **BUGFIX** (by @JoshMart) Fix extra lines not painting when at chart min or max, #1255.
Expand Down
4 changes: 1 addition & 3 deletions lib/src/chart/scatter_chart/scatter_chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ class _ScatterChartState extends AnimatedWidgetBaseState<ScatterChart> {
}
_providedTouchCallback?.call(event, touchResponse);

final desiredTouch = event is FlPanDownEvent ||
event is FlPanUpdateEvent ||
event is FlPointerHoverEvent;
final desiredTouch = event.isInterestedForInteractions;

if (!desiredTouch ||
touchResponse == null ||
Expand Down

0 comments on commit 300b6b2

Please sign in to comment.