Skip to content

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

@loadingwyn

Description

@loadingwyn

Version

4.9.0

Reproduction link

https://codesandbox.io/s/clever-proskuriakova-pmds2?file=/src/index.js

Steps to reproduce

yaxis 不设置min/max, 选取图上非最大最小值的一点,使用滚轮zoom
image

What is expected?

zoom放大的中心点应该是鼠标位置

What is actually happening?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions