echarts: Touch controls do not work on Windows devices

Version

4.6.0

Steps to reproduce

Have a chart (in our case a line chart) with an inside datazoom. Pinch to zoom will now work on mobile devices, but not on e.g. laptops with touchscreens.

What is expected?

Windows devices with touchscreens are expected to work just like mobile devices.

What is actually happening?

Touch events are being intercepted by the browser. If this is explicitly disabled using e.g. touch-action in CSS, nothing happens.


We have a large touch screen we want to show our charts on. This uses Windows. This lacking functionality means we cannot do that.

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Reactions: 2
  • Comments: 17 (2 by maintainers)

Most upvoted comments

Experiencing the same problem. Any update on this here?

I find it sort of weird to ask for a demo for this, since it’s the case for all of ECharts. Nonetheless:

Take any example for ECharts, e.g. this official one: https://echarts.apache.org/examples/en/editor.html?c=area-simple

This will support touch controls on phones. On Windows devices, it will behave like this: https://streamable.com/n0vqc