-
Notifications
You must be signed in to change notification settings - Fork 19.8k
使用滚轮放大时,第一次的放大中心不在鼠标指针处 #15201
Copy link
Copy link
Open
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.waiting-for: community
Milestone
Description
Version
4.9.0
Reproduction link
https://codesandbox.io/s/clever-proskuriakova-pmds2?file=/src/index.js
Steps to reproduce
yaxis 不设置min/max, 选取图上非最大最小值的一点,使用滚轮zoom

What is expected?
zoom放大的中心点应该是鼠标位置
What is actually happening?
zoom放大的中心点偏移 (如图,理论上zoom后曲线上这个点相对于鼠标的位置不变,因为其在zoom中心, 可实际上却上移了)

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.waiting-for: community
Type
Fields
Give feedbackNo fields configured for issues without a type.