-
-
Notifications
You must be signed in to change notification settings - Fork 917
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
Enable mouse scroll wheel control of sliders #3582
Conversation
e93dfd7
to
0d58c36
Compare
This comment has been minimized.
This comment has been minimized.
AUTOMERGE: (FAIL)
|
will this lead to accidental reconfiguration when simply wanting to page up/down. maybe ctrl+wheel? |
Feels like this can be the case. Also, when you reduce the size of the window this could possibly cause issues with the scrolling as well. My 2 cents on this around the UX. General, from experience, ppl get confused when scroll is hijacked by anything other than scroll. IMO better UI/UX here would be to use |
b33cb20
to
3fe758d
Compare
Since browsers use |
|
This comment has been minimized.
This comment has been minimized.
3fe758d
to
7d511bc
Compare
7d511bc
to
fde5df0
Compare
Yes, great idea - I have done so. |
Note that for |
This comment has been minimized.
This comment has been minimized.
|
fde5df0
to
6834561
Compare
I've changed the ignored keys array / check to use numeric values which should solve this. Having noticed the values of the existing |
This comment has been minimized.
This comment has been minimized.
|
i dont know if it's required, but maybe rebase on upstream/master. i'll approve this PR as well. 🚀 |
does anyone have any objections to error messages being moved? this is my only concern, but i do see the reason. |
6834561
to
ddadc14
Compare
rebased |
This comment has been minimized.
This comment has been minimized.
i don't think it needs to be verbalized in help-tips, personally. |
ddadc14
to
ab68f48
Compare
pushed a change to reduce code duplication and also to call |
ab68f48
to
e4bc56d
Compare
Pushed another change to reduce duplication ...and now I see that the duplication check is complaining about |
This comment has been minimized.
This comment has been minimized.
e4bc56d
to
795c4ae
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@haslinghuis It was because the alt keys were not being ignored on Linux but I guess that's because I used |
Do you want to test this code? Here you have an automated build: |
CI failed due to |
Do you want to test this code? Here you have an automated build: |
Do you want to test this code? Here you have an automated build: |
|
Enable mouse scroll wheel for sliders
This pull request adds the ability to manipulate the PID, filter, and motor sliders with the mouse's scroll wheel.
As demonstrated in the videos below, this is a convenient way of adjusting the sliders and, in the case of the motor sliders, enables you to easily set two motors to exactly the same value (which is almost impossible when clicking on them). The content pane can still be scrolled when the mouse is not directly over an active slider control.
Recording.2023-09-16.220335.mp4
Recording.2023-09-16.211940.mp4
Since it is not a good experience having the sliders move about the screen while you are scrolling them, I have moved the PID/filter warning boxes from above the sliders to below them. This prevents the sliders from being pushed downwards when the warning appears.
I have also styled them to match the "notes" that they now sit on top of.