antvis/G2

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


is it released ??????

posted by xyy94813 over 3 years ago

Yes

posted by pearmini over 3 years ago

Can i use it in v4.1.32?

posted by xyy94813 over 3 years ago

The scroll event will pop to parent container. It not work well when page has scroll bar too..

posted by xyy94813 over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests