Skip to content

Completely disable MouseWheelDirective if not needed - #516

Open
novarx wants to merge 1 commit into
swimlane:masterfrom
novarx:completely_disable_mouseWheelDirective_if_not_needed
Open

Completely disable MouseWheelDirective if not needed#516
novarx wants to merge 1 commit into
swimlane:masterfrom
novarx:completely_disable_mouseWheelDirective_if_not_needed

Conversation

@novarx

@novarx novarx commented Jul 11, 2023

Copy link
Copy Markdown

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

novarx commented Jul 11, 2023

Copy link
Copy Markdown
Author

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

novarx commented Feb 7, 2024

Copy link
Copy Markdown
Author

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

1 participant