Skip to content

Allow user to customize mouse wheel Zoom speed.#940

Merged
swharden merged 2 commits intoScottPlot:masterfrom
StendProg:MouseWheelZoomSpeed
Apr 10, 2021
Merged

Allow user to customize mouse wheel Zoom speed.#940
swharden merged 2 commits intoScottPlot:masterfrom
StendProg:MouseWheelZoomSpeed

Conversation

@StendProg
Copy link
Contributor

Purpose:
Allow user to setup mouse wheel zoom speed. #937

New Functionality:
Introduce new ScrollWheelZoomIncrement property for Control.Configuration.
Available range is (0, 1).
0.15 default value match to previous behaviour.

Control.Configuration.ScrollWheelZoomIncrement = 0.01; // very slow mouse wheel zoom
Control.Configuration.ScrollWheelZoomIncrement = 0.5 // fast mouuse wheel zoom
Control.Configuration.ScrollWheelZoomIncrement = 0.15 // default value

@PassionateDeveloper86
Copy link

Just want to say thank you for this PR!

@swharden swharden mentioned this pull request Apr 10, 2021
48 tasks
@swharden
Copy link
Member

Thank you @StendProg, this looks great 👍

This PR reminds me that more control module fields could benefit from being converted to properties and adding error checking and testing. I noted this in #716 and hope to revisit this some time after 4.1 is released.

@swharden swharden merged commit b03b178 into ScottPlot:master Apr 10, 2021
@swharden swharden mentioned this pull request May 17, 2021
82 tasks
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.

3 participants