-
Notifications
You must be signed in to change notification settings - Fork 19.8k
dataZoom 阻塞滚动条 #10376
Copy link
Copy link
Closed
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.staleInactive for a long time. Will be closed in 7 days.Inactive for a long time. Will be closed in 7 days.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Version
4.2.1
Reproduction link
https://echarts.baidu.com/examples/editor.html?c=area-rainfall
Steps to reproduce
将原有的 dataZoom 的 inside 部分添加如下内容:
zoomOnMouseWheel: 'ctrl'
What is expected?
当鼠标移入图内(能够呈现出 tooltip 样式时),仅仅在按 ctrl 键时阻塞原有的滚轮事件
What is actually happening?
在不按 ctrl 时也阻塞了原有滚动事件(页面不会出现上下拉动的效果)
去掉 dataZoom 属性,鼠标移入图内,上下滑动滚轮可以看到拉去效果(页面会往下拉沉)。
业务场景:看板页面,此会造成页面滚动被阻塞,影响体验