-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Knob: hide cursor on wheel event for .8s #11077
Conversation
Good idea. This kind of confirms my concerns of changing the mouspointer to a hand. |
Is only the pointer hidden or is the mouse kind of catched like when turning the knob klick+move |
Your comment confirms my impression you've been mixing things up ; )
Why would we want to lock the cursor position when scrolling? If you move the cursor while scrolling, that's okay, as soon as the cursor leaves the widget, the regular cursor is restored so it can always be located (unlike hiding it during drag events). |
Yes, you are right unfortunately. I still do not understand how this solves the problem. When you move the mouse during scrolling and hit another widget it is hovered. But before hovering another widget you leave the knob widget which bypassed the solution here. |
done. I think I'll also may implement lazy timer creation like for mixxx/src/control/controlbehavior.h Lines 149 to 156 in 28e8b3f
|
I don't understand, please describe the distraction in that case. Btw I think move events could of course be ignored while scrolling, though not while the cursor is still hidden some time after scrolling, because then I'd expect the cursor move again (like instant release after a drag event). |
I have just tested this PR and it works like described. Now I also understand the issue and how it is solved. |
0d8988c
to
f359e4a
Compare
ping @daschuer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay. A few more findings.
f359e4a
to
9fdf0c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Looks and works good.
While working on #11041 I got bothered by the mouse pointer covering the effect parameter value when using the mouse wheel to turn the knob.
This hides the pointer like for mouse move (drag) events. Atm it's useful only for effect parameter knobs, but for consistency it's applied to all knobs.
Timeout is .8 seconds, the same time the parameter value is shown