echarts icon indicating copy to clipboard operation
echarts copied to clipboard

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

Open loadingwyn opened this issue 4 years ago • 4 comments

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

loadingwyn avatar Jun 21 '21 05:06 loadingwyn

Hi! We've received your issue and please be patient to get responded. 🎉 The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it contains a minimum reproducible demo and necessary images to illustrate. Otherwise, our committers will ask you to do so.

A minimum reproducible demo should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to [email protected]. Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe our mailing list.

Have a nice day! 🍵

echarts-bot[bot] avatar Jun 21 '21 05:06 echarts-bot[bot]

@loadingwyn It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

When using the scroll wheel to zoom in, the center of the first zoom is not at the mouse pointer

BODY

Version

4.9.0

Reproduction link

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

Steps to reproduce

Yaxis does not set min/max, selects a point on the graph that is not the maximum minimum, and uses the roller zoom image

What is expected?

The center point of zoom zoom should be the mouse position

What is actually happening?

Zoom zoom zooms in on the center point offset (pictured, theoretically the position of the point relative to the mouse on the post-zoom curve remains the same because it is in the center of the zoom, but actually moves up) image

echarts-bot[bot] avatar Jun 21 '21 05:06 echarts-bot[bot]

any progress?

loadingwyn avatar Dec 08 '21 08:12 loadingwyn

update?

loadingwyn avatar Dec 15 '24 15:12 loadingwyn