fusioncharts / fusioncharts-dist

FusionCharts JavaScript Charting library. Over 95+ charts and 1,400+ maps to choose from, with integrations available for all popular JavaScript frameworks & back-end programming languages.
https://www.fusioncharts.com
Other
84 stars 46 forks source link

The entire page gets stuck when the scroll bar of the legends is scrolled on mobile devices #51

Open leon0leon opened 1 year ago

leon0leon commented 1 year ago

When FusionCharts is upgraded to version 3.19.0 or 3.18.0, once the scroll bar of the legends is scrolled on mobile devices, the whole page is stuck, and the user can no longer scroll the whole page to see the content at the bottom of the page. This problem occurs on both Android and IOS devices and can be reproduced when you visit https://x79gzo.csb.app/ on your mobile devices. image

corysmc commented 1 year ago

We've noticed this problem too! Did you find any workarounds?

corysmc commented 1 year ago

I ended up using disableLegendScroll: '1' in the chart config.

Noted here: https://www.fusioncharts.com/dev/upgrading/change-log

This setting belongs inside the chart config - similar to other options: https://www.fusioncharts.com/dev/chart-guide/chart-configurations/legend e.g.

{
  "chart": {
    "disableLegendScroll": "1"
  }
}

For us it does still cut off the legend a bit - but that is preferred over the scrolling getting messed up