Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] 为 dataZoom-inside 配置项添加仅在未按下功能键时触发的选项 #20646

Open
BSPR0002 opened this issue Jan 3, 2025 · 2 comments · May be fixed by #20660
Open

[Feature] 为 dataZoom-inside 配置项添加仅在未按下功能键时触发的选项 #20646

BSPR0002 opened this issue Jan 3, 2025 · 2 comments · May be fixed by #20660
Labels
new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@BSPR0002
Copy link

BSPR0002 commented Jan 3, 2025

What problem does this feature solve?

希望为 moveOnMouseWheel、moveOnMouseMove、zoomOnMouseWheel 添加仅在未按下功能键时触发的选项。
dataZoom-inside 配置项的 moveOnMouseWheel、moveOnMouseMove、zoomOnMouseWheel 选项如果设置为了 true,在按下 ctrl、shift、alt 时仍会触发,导致与其他配置了特定功能键的鼠标操作冲突。

I want a feature that makes moveOnMouseWheel, moveOnMouseMove, zoomOnMouseWheel of 'dataZoom-inside' items be triggered only when function keys are not pressed.

What does the proposed API look like?

chart.setOption({
    dataZoom: [{
        type: "inside",
        zoomOnMouseWheel: "no-function-key"
    }]
})
@echarts-bot echarts-bot bot added the pending We are not sure about whether this is a bug/new feature. label Jan 3, 2025
Copy link

echarts-bot bot commented Jan 3, 2025

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

TRANSLATED

TITLE

[Feature] Add an option to the dataZoom-inside configuration item to trigger only when the function key is not pressed

BODY

What problem does this feature solve?

If the moveOnMouseWheel, moveOnMouseMove, and zoomOnMouseWheel options of the dataZoom-inside configuration item are set to true, they will still be triggered when ctrl, shift, or alt are pressed, causing conflicts with other mouse operations configured with specific function keys.

What does the proposed API look like?

Would like to add options to moveOnMouseWheel, moveOnMouseMove, zoomOnMouseWheel that only trigger when the function key is not pressed, for example:

chart.setOption({
    dataZoom: [{
        type: "inside",
        zoomOnMouseWheel: "no-function-key"
    }]
})
`
</details>

@helgasoft
Copy link

keyboard topic discussed already - #14706, #18585
A chart can be controlled by keys, but first it needs focus - Demo
📌 please close issue if problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants