imaNNeo / fl_chart

FL Chart is a highly customizable Flutter chart library that supports Line Chart, Bar Chart, Pie Chart, Scatter Chart, and Radar Chart.
https://flchart.dev
MIT License
6.87k stars 1.78k forks source link

added detectScale to FlTouchData flag and scale gesture detection option #1721

Closed eladm-ultrawis closed 2 months ago

eladm-ultrawis commented 3 months ago

added detectScale to FlTouchData flag and scale gesture detection option in the touch callback to all charts.

enabling scale detection and pan gesture detection is not supported, so enabling scale detection will disable pan detection and vice versa

related issues: This PR addresses the problem described in issue #1720 and #71

imaNNeo commented 2 months ago

As @adamsocrat provided a simpler solution, we will go with #1728 Thanks for contributing!