google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.8k stars 1.2k forks source link

Selection persists after scrubbing with pressHold. #752

Open jewong42 opened 2 years ago

jewong42 commented 2 years ago

I have a TimeSeriesChart with the following behaviors.

behaviors: [
  charts.LinePointHighlighter(dashPattern: const []),
  charts.SelectNearest(eventTrigger: charts.SelectionTrigger.pressHold),
]

My understanding is that pressHold should clear the selection when the user stops scrubbing the chart. However, the selection will sometimes persist resulting in a persisting LinePointHighlighter.

Screen Shot 2022-03-21 at 11 43 52 AM

I'm not entirely sure if this is a bug or if we're expected to introduce a work around like the selection_user_managed exampple.