Skip to content
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 disappear when SpinBox is being hidden while there is a Drag #77803

Closed
ajreckof opened this issue Jun 3, 2023 · 0 comments · Fixed by #77804
Closed

Mouse disappear when SpinBox is being hidden while there is a Drag #77803

ajreckof opened this issue Jun 3, 2023 · 0 comments · Fixed by #77804
Milestone

Comments

@ajreckof
Copy link
Member

ajreckof commented Jun 3, 2023

Godot version

4.1.dev (db5113d)

System information

macOS 13.3.0 - Vulkan (Forward+) - integrated Apple M1 Pro - Apple M1 Pro (8 Threads)

Issue description

When hiding a SpinBox during a grab modification. The mouse will stay hidden eternally as SpinBox would stop receiving inputs. Because of how SpinBox is implemented, there is another way to trigger this bug that is shown in MRP.

This issue was found while debugging #76729. fixing this issue would not fix this other one but would prevent the mouse from disappearing in this other issue.

Steps to reproduce

  • create a SpinBox
  • add a script that in _gui_input wait for the mouse mode to be MOUSE_MODE_CAPTURED and then hide the spin box
  • launch the game and do a drag modificiation on the SpinBox
  • Congratulations your mouse is locked and you need to Alt + Tab to go back to the editor and force quit your game

Minimal reproduction project

test1.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants