apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
59.74k stars 19.58k forks source link

Datazoom mousewheel and keypress combination wonky. #15871

Open xvaara opened 2 years ago

xvaara commented 2 years ago

Version

5.2.1

Steps to reproduce

zoomOnMouseWheel: 'shift', on one axis and moveOnMouseWheel: true on another... If shift is pressed it will also trigger the one with true, causing move and zoom happen on different axis at the same time.

What is expected?

Only 'shift' one triggering.

What is actually happening?

Both are


It could be another option like 'bare' if the current behavior is needed to remain.

echarts-bot[bot] commented 2 years ago

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 dev@echarts.apache.org. Please attach the issue link if it's a technical question.

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

Have a nice day! 🍵

echarts-bot[bot] commented 2 years ago

@xvaara Please provide a minimum reproducible demo for the issue either with https://codepen.io/Ovilia/pen/dyYWXWM , https://www.makeapie.com/editor.html or https://codesandbox.io/s/mystifying-bash-2uthz.

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.

xvaara commented 2 years ago

Here, it scroll if you press shift: https://codesandbox.io/s/focused-thunder-60bf3?file=/src/index.js

stuta commented 2 years ago

I have the same problem.

xvaara commented 2 years ago

Also I noticed that if zoomOnMouseWheel: 'shift' scrolling without shit doesn't work on the page (if hovering the chart)

agardiol commented 2 years ago

This ticket is similar to: scroll event may prevent after use inside dataZoom #10079 Should be merged ?

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

xvaara commented 3 months ago

It's still an issue