apache / apache/echarts

使用滚轮放大时,第一次的放大中心不在鼠标指针处

Open
#15,201 4 comments 0 reactions 0 assignees View on GitHub
bug pending waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
4.9.0

### Reproduction link
[https://codesandbox.io/s/clever-proskuriakova-pmds2?file=/src/index.js](https://codesandbox.io/s/clever-proskuriakova-pmds2?file=/src/index.js)

### Steps to reproduce
yaxis 不设置min/max, 选取图上非最大最小值的一点,使用滚轮zoom
![image](https://user-images.githubusercontent.com/17921180/122711262-7c757f80-d294-11eb-90f0-d21df53a09de.png)

### What is expected?
zoom放大的中心点应该是鼠标位置

### What is actually happening?
zoom放大的中心点偏移 (如图,理论上zoom后曲线上这个点相对于鼠标的位置不变,因为其在zoom中心, 可实际上却上移了)
![image](https://user-images.githubusercontent.com/17921180/122711393-a7f86a00-d294-11eb-927c-1252fa5f107c.png)

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.