antvis/G2




The issue has been closed
Enable mouse wheel scrolling for scrollbars #3605
Shamann posted onGitHub
- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
It is now possible to scroll a chart only by dragging the scollbar's thumb. It would be handier to use a mouse wheel instead. There is a similar request for G2Plot.
What does the proposed API look like?
The required scrollbar behavior can be configured either in a scrollbar's option:
scrollbar: {
type: "horizontal",
enableMouseWheel: true
}
or by using the chart's interactions list:
chart.interaction('plot-mousewheel-scroll');
<!-- generated by antv-issue-helper. DO NOT REMOVE -->