apache / apache/echarts

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

Open
#20,646 2 comments 0 reactions 0 assignees View on GitHub
new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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?

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.