-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Mouse cursor disappears when leaving slider input in inspector after edition #66909
Comments
Can you reproduce this after enabling Single Window Mode in the Editor Settings then restarting the editor? |
Hello, I confirm I can reproduce it in single window mode. |
For me on Debian Linux with Xfce window manager I can not reproduce this issue with non-mono Godot MouseCursorTest.mp4Which window manager do you use? In your video it looks like the mouse button gets pressed, which explains the vanishing mouse cursor and the value-change and afterwards gets into an inconsistent state (mouse is not pressed, but application assumes, that it is). |
Are you using a laptop trackpad? I can reproduce this on windows but only by double-tapping inside the trackpad. Regular mouse interactions work normally. |
@salamandars |
Here's what I think is happening. A common way to click on (at least some) trackpads is to do a quick double-tap inside the touch area. Technically this actually registers as a double-click, at least in godot. So when I do this on a spinbox, it seems to fire off 4 mouse button events:
Guesswork: The first two events work correctly to put the Perhaps a fix for this would be to move the mouse capturing behavior to |
Hey @salamandars, i have same bug on ubuntu 22.04 without touchpad. And even without click event. Just click on input, write some number and press enter. After any move mouse starts altering already inactive input without cursor v4.0-beta4_linux.x86_64 without mono. I guess your commit can fix this, thanks! |
I tested in Godot4 beta6 on Mac and mouse cursor only disappears when using mouse (or trackpad) draging to change inspector value Screen.Recording.2022-11-25.at.4.23.25.PM.mov |
Yeah this was fixed a while ago. The behavior described by @snougo is the intended behavior. |
Similar but different issue happening to me and some others online. Mouse cursor straight up hidden every time it's hovered over text input. |
Godot version
4.0.beta2.mono.official (commit f8745f2)
System information
Linux Mint, Vulkan, Nvidia Geforce GTX 1660 Ti, nvidia-driver-515.65.01
Issue description
When I edit a slider value (float or integer) in the inspector and leave the mouse, the cursor disappears often (~80% of the times). After switching to another application, the cursor is back and I can move back to Godot and use the mouse again. Moving
![bug](https://user-images.githubusercontent.com/5015561/193936247-5c256d03-b69c-47c0-a969-117d536bfe77.gif)
the cursor inside the selected input also changes the input value :
Note that this also happens when I move the cursor back into the input while it has been edited and is still selected.
Steps to reproduce
Open any project. Try to change the value of a slider value in the inspector (float or int) and move the cursor inside the selected input. It should disappear quite often (roughly 80% of the time)
Minimal reproduction project
No reproduction project is needed, since I can reproduce in any project on my system.
The text was updated successfully, but these errors were encountered: