apache / apache/echarts

[Bug] tooltip appendtobody模式下在移动端滚动页面的情况会错位

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

Description

### Version

5.4.3

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/laughing-mestorf-3tppk9?file=%2Fsrc%2Findex.js

### Steps to Reproduce

1. 进入上述例子后,打开手机端模拟刷新页面
2.正常点击echarts后滚动页面
3.再点击后续的echarts, 滚动幅度越大,错位的距离越大
设置position也无效

### Current Behavior

当滚动越大,tooltip错位非常多

### Expected Behavior

期望应该在当前点击的图的位置

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