echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] tooltip does not hide after mouseup on mobile device

Open lahvey opened this issue 2 months ago • 0 comments

Version

5.2.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-simple

Steps to Reproduce

Set the following option, change browser to mobile mode (or test on mobile phone), move your mouse or finger on the chart and then release.

option = {
  xAxis: {
    type: 'category',
    data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
  },
  yAxis: {
    type: 'value'
  },
  tooltip: {
    show: true,
    hideDelay: 30,
    trigger: 'axis',
  },
  series: [
    {
      data: [150, 230, 224, 218, 135, 147, 260],
      type: 'line'
    }
  ]
};

Current Behavior

After mouseup, the tooltip is still there, even clicking the area outside the chart. Though it works on PC.

Expected Behavior

hide the tooltip after mouseup/finger move, or hideDelay should work here

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

lahvey avatar Dec 14 '24 01:12 lahvey