apache / apache/echarts

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

Open
#20,589 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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.
```js
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

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.