Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable mouse wheel scrolling for scrollbars #3605

Closed
1 task done
Shamann opened this issue Sep 5, 2021 · 4 comments · Fixed by #3606
Closed
1 task done

Enable mouse wheel scrolling for scrollbars #3605

Shamann opened this issue Sep 5, 2021 · 4 comments · Fixed by #3606

Comments

@Shamann
Copy link
Contributor

Shamann commented Sep 5, 2021

  • 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');
@xyy94813
Copy link

is it released ??????

@pearmini
Copy link
Member

Yes

@xyy94813
Copy link

Can i use it in v4.1.32?

@xyy94813
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants