godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.14k stars 19.95k forks source link

Mouse pointer disappears when hold & drag in Input fields #81045

Open Ymanawat opened 12 months ago

Ymanawat commented 12 months ago

Godot version

4.0 stable, 4.2.dev

System information

Godot v4.2.dev (6da4ad166) - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Laptop GPU (NVIDIA; 31.0.15.3699) - 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 Threads)

Issue description

Mostly in 4.0 stable, When I hold & drag to adjust the value in input fields, the mouse pointer disappears and doesn't come back often. In the latest version it's happening rarely, but the pointer still vanishes and only reappears after some time or when I restart the engine. I suggest to use some arrow icon like this arrow if we hold and drag.

Steps to reproduce

  1. Open any project and go to the inspector
  2. Select any field i.e. position, scale, rotate
  3. Hold and drag to change the value.
  4. See the pointer disappear

Minimal reproduction project

N/A

AThousandShips commented 12 months ago

Can you test it in 4.0.4? 4.0 is outdated

Ymanawat commented 12 months ago

Tested it in the 4.1.stable and latest master branch, and it's not that noticeable now. but the pointer still disappears while dragging and when we release, the pointer reappears. sometimes the pointer's position also resets to the center of the screen.

AThousandShips commented 12 months ago

AFAIK that is by design, since the pointer is at the center of the screen and constantly resetting that I don't think a pointer change is good, it will be confusing and look glitched

Calinou commented 12 months ago

Blender 3.5 also makes the cursor disappear when dragging, although it changes the cursor when hovering to provide a hint that you can drag it:

https://github.com/godotengine/godot/assets/180032/e3426485-8424-40b3-b7c6-617ccd40b9a5

KoBeWi commented 12 months ago

sometimes the pointer's position also resets to the center of the screen.

This is a bug. I remember it was fixed, does it happen in 4.2?

AThousandShips commented 12 months ago

That part has indeed been fixed, though it was fixed before 4.0, might have been multiple cases:

And then there is:

AThousandShips commented 12 months ago

This part might be solved by:

Assuming it still happens in recent versions, can you please test with 4.0.4 to check if it is still reproducible there?

Ymanawat commented 12 months ago

This is a bug. I remember it was fixed, does it happen in 4.2?

Yes, not frequent but yes it's happening. Watch this recording, tested in 4.2. The pointer blinks at the center, and as @AThousandShips said, I'm thinking it's intentional, resetting the position again and again. Sometimes it goes to the center and remains there.

https://github.com/godotengine/godot/assets/81252768/705b0b00-b976-4309-93e1-f6c0122bd99e

zeonos commented 10 months ago

I just started my Godot journey with version 4.1.2.stable.official [399c9dc39] and this error happens if i drag and hold on the Frame Duration button. i can get the cursor back by clicken on the two arrows (if i alt tab to a different window i can see the cursor)

https://github.com/godotengine/godot/assets/6930544/b5f655ac-bb05-457f-a94c-a5940f4a6e18

Samweiss93 commented 9 months ago

I also have the same issue that zeonos has shown

AThousandShips commented 9 months ago

That is a different bug: