-
Notifications
You must be signed in to change notification settings - Fork 404
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
Scrolling through buttons is not consistent #1440
Comments
The mouse wheel tries to normalize the rate based on the number of rows and columns, but I bet that isn’t working quite right. Code is here surge/src/common/gui/CHSwitch2.cpp Line 114 in a64f935
It’s a bit hard for me to test this (I don’t have any device with a physical scroll wheel just trackpads with swipe gestures) but here’s some things I would look for
I’ll look at this when I’m back but since you can now build and do PRs figure I would point you at the code in case you wanted to. It’s a pretty straight forward chunk of code and the solution is definitely in that block somewhere! |
So after some testing, getRange() seems to always return 1.0. |
Ah I just figured it out. We simply had to do subtract 1 to the number of columns and number of rows because here we want the number of "scroll steps" or "dividers between the buttons" instead of the number of buttons for the calculation! |
Oh yeah! |
If you put that in a pr I can merge it in the morning! Awesome! |
Description:
Scrolling through orange buttons such as Scene Mode, FX Bypass/Character, OSC FM Routing, Filter Configuration, Octave switches, Filter algorithms, Waveshaper Shape, etc. is inconsistent.
Sometimes it takes two scroll steps for it to switch to the next / previous option, when it should only take one.
Version:
Latest nightly, VST3, 64 bits.
Desktop (please complete the following information):
Seems like a small bug, probably valid for #1390 ?
The text was updated successfully, but these errors were encountered: