-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Prevent disappearance of mouse when SpinBox is hidden while dragging #77804
Prevent disappearance of mouse when SpinBox is hidden while dragging #77804
Conversation
Have you thought about using |
So to give a bit more in depth. I do use |
I was looking into this issue as well on another issue and I added a few more notification types for when a user alt-tabs or if the app loses focus while dragging and I forcibly call |
|
I just tested this PR and it is breaking SpinBox functionality now. The mouse cursor is always shown and only the up/down arrows work, this PR essentially breaks the dragging feature altogether. |
I can't reproduce this. The PR works correctly. |
So looked a bit and effectively I can't reproduce the problem with the mrp but I think what they pointed out is how even though this is a half fix for #76729 it is not a full fix as their is a strange behaviour since it is being hidden and shown again every time the value is changed. A proper fix of this other bug would be to make sure it does hide and show it again every time it is updated. This is a problem of a long loop of update that had unforeseen consequences |
I think you should do that, yes. The only other place that calls |
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.
So this does solve the immediate problem, though you can still make your mouse disappear if you do something like hide, await 1-2 seconds, show as the drag happens.
I think this is bordering on shooting yourself in a foot at this point, though. After a rebase and a quick code clean up this should be good to go.
And this does fix #76729 btw, the spinbox is lagging like hell due to the described behavior issue, but the mouse pointer remains visible.
Thanks! |
Fixes #77803. Fixes #76729.