Skip to content

Demo: Improve scrollwheel zoom vs. scroll example #338

@swharden

Description

@swharden

I got an email from Zach suggesting that ScottPlot mouse interactivity is odd when using the WpfPlot control inside a ScrollViewer:

I recently added a scroll bar to my wpf app and noticed that, when I try to zoom in on the ScottPlots, the scrolling action simultaneously zooms in on the plot (slightly) and moves the scroll bar. This makes it difficult to zoom in, because I need to unscroll the scroll bar each time I try to zoom in a bit, such that zooming in a lot requires a lot of unscrolling.

This is likely something I need to do on my end to disable the scroll bar when mousing over the plot and not something that can be addressed within ScottPlot. DataGrids, which are native to wpf, have this functionality.

image

It might be good to figure out how to do this and add an example for the demo application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions