-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Since v0.40.0, touch event MoveUpdate
cannot be called continuously after tap
#1127
Comments
I suggest we have a flag for this, to set the long press to be true or false. |
Found a fix for it, Goto lib/src/chart/base/base_chart/render_base_chart.dart then update line 72 to this:
The trick is, it sets the LongPressGestureRecognizer.duration to be 0 milliseconds instead of 500 from kLongPressTimeout. Suggestion to the dev team is to make this a feature flag so people can enable or disable LongPress feature |
Hi, thanks for your response.
Your approach is better, so I agree with you. |
Great! |
Added I hesitated that whether optional property should take a boolean true/false or duration, but finally decided that LineTouchData(
handleBuiltInTouches: true,
touchTooltipData: LineTouchTooltipData(
tooltipBgColor: Colors.blueGrey.withOpacity(0.8),
),
// Here is additional property.
// You can customize how long it takes for tooltips to appear.
longPressDuration: Duration.zero,
); |
Resolved by #1128 |
Thank you for contributing. |
0.60.0 is just released. Check it out! |
Hi, thanks to your awesome chart package.
Since v0.40.0, touch event
MoveUpdate
cannot be called continuously after tap(= required longPress).Difference in behavior is here.
Is the behavior expected?
I think, it's change is not good for users.
Some users cannot aware that the chart enable for them to trace line and show tooltip because of need to wait for certain amount of time.
Therefore, I would like to revert to v0.36.0 behavior.
To Reproduce
Just use
line_chart_sample_1.dart
https://github.com/imaNNeoFighT/fl_chart/blob/master/example/lib/line_chart/samples/line_chart_sample1.dart
Thanks.
The text was updated successfully, but these errors were encountered: