Skip to content

Commit

Permalink
Add clickHappened property in BaseTouchResponse.
Browse files Browse the repository at this point in the history
  • Loading branch information
imaNNeo committed Mar 19, 2021
1 parent 2fd94ca commit c7a2ae3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/chart/base/base_chart/base_chart_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ TextStyle defaultGetTitleTextStyle(double value) {
/// Specific touch details should be hold on the concrete child classes.
class BaseTouchResponse {
final PointerEvent touchInput;
final bool clickHappened;

BaseTouchResponse(PointerEvent touchInput) : touchInput = touchInput;
BaseTouchResponse(PointerEvent touchInput, bool isClickHappened)
: touchInput = touchInput,
clickHappened = isClickHappened;
}

0 comments on commit c7a2ae3

Please sign in to comment.