Skip to content

Avalonia: Customizable wheel event handling.#5241

Open
oktrue wants to merge 1 commit into
ScottPlot:mainfrom
oktrue:avalonia-customizable-wheel-handling
Open

Avalonia: Customizable wheel event handling.#5241
oktrue wants to merge 1 commit into
ScottPlot:mainfrom
oktrue:avalonia-customizable-wheel-handling

Conversation

@oktrue
Copy link
Copy Markdown
Contributor

@oktrue oktrue commented May 7, 2026

fix #5240

e.Handled = true; // Prevent the event from bubbling up to parent controls (e.g., ScrollViewer)

e.Handled = HandleMouseWheelEvent; // Prevent the event from bubbling up to parent controls (e.g., ScrollViewer)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it not make more sense to read UserInputProcessor.IsEnabled?

I'm assuming that you would never want to scroll when user input is enabled, and you would never want to block scroll when it's disabled, which means we should be using the same boolean everywhere

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.

Avalonia. Can't scroll a page with a plot inside if the mouse is over the plot.

2 participants