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

Completely disable MouseWheelDirective if not needed #516

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

novarx
Copy link

@novarx novarx commented Jul 11, 2023

This makes it possible to still listen to onMouseWheel Events when no Zoom/Trackpad is enabled.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

It's currently not possible to listen to any mouseWheel Event, when hovering over the graph area, which i.e. prevents the page from scrolling.
his behavior is because of MouseWheelDirective::mouseWheelFunc resp. event.preventDefault() which is always called, no matter if it is used or not.

What is the new behavior?

This Change makes it possible to still listen to onMouseWheel Events, if Zoom and Trackpad is disabled, over the graph.

Does this PR introduce a breaking change?

  • Yes
  • No

This makes it possible to still listen to onMouseWheel Events when no Zoom/Trackpad is enabled.
@novarx novarx marked this pull request as ready for review July 11, 2023 14:51
@novarx
Copy link
Author

novarx commented Jul 11, 2023

If you need an working example, let me know.

@novarx novarx marked this pull request as draft July 11, 2023 15:19
@novarx novarx marked this pull request as ready for review July 11, 2023 15:29
@novarx
Copy link
Author

novarx commented Feb 7, 2024

@marjan-georgiev Any chance to get a review on that?

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 this pull request may close these issues.

None yet

1 participant