镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Open

Description

@BSPR0002

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"
    }]
})

Activity

  1. added
    pendingWe are not sure about whether this is a bug/new feature.
    on Jan 3, 2025
  2. echarts-bot commented on Jan 3, 2025

    @echarts-bot

    @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>
  3. helgasoft commented on Jan 5, 2025

    @helgasoft

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-featurependingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions