godot icon indicating copy to clipboard operation
godot copied to clipboard

Godot 4 Mouse get locked after clicking an editable field in the editor

Open Reports1874 opened this issue 2 years ago • 2 comments

Godot version

4.0.beta16

System information

Debian GNU/Linux 11 (bullseye) x86_64

Issue description

The issue seems a bit random sometimes, but I have found that whenever I try to edit a field in the editor (position, scale, etc) after editing another one, the mouse get locked and I can't do anything until I press ESC or I click again.

Currently using beta16, but noticed it on earlier betas as well.

Steps to reproduce

The easiest way to reproduce the issue, but not the only one: Edit one field, press ESC and click another field.

Short video demostration (24s): https://youtu.be/6iNe30KnLhQ

Minimal reproduction project

N/A

Reports1874 avatar Jan 27 '23 17:01 Reports1874

Unable to replicate this on Windows.

The edited EditorSpinSlider doesn't receive the Left-MouseButton-Up event and so it assumes that mouse movements are meant to start dragging, so that MOUSE_MODE_CAPTURED is activated in EditorSpinSlider::gui_input. Bisecting shows that this got introduced in #70052.

Sauermann avatar Jan 28 '23 15:01 Sauermann

Hi, I can confirm this. I'm using Beta 16 on kubuntu 22.04.

In my case I had opened a PBR material. Had just changed the albedo where I added a noise texture and went to expand the emission section. Instead of expanding the emission it expanded Anisotropy. From then on all left clicks, even on the main menu items, kept flipping Anisotropy section. I got left click control back when I did a Projects save all with ctrl shift s.

It also appears to be random, I can't yet make it happen again.

Juuliuus avatar Jan 29 '23 14:01 Juuliuus

Related to https://github.com/godotengine/godot/issues/72012.

Calinou avatar Jan 30 '23 13:01 Calinou

@Juuliuus It may got fixed in beta 17, I can't reproduce the issue anymore. Can you confirm?

Reports1874 avatar Feb 04 '23 16:02 Reports1874

@Reports1874 I am also on 17 now, I reproduced my steps as best I could from my description. I also tried a variety of other things and I can not make it happen again.

Juuliuus avatar Feb 04 '23 19:02 Juuliuus

Bisecting shows that this got introduced in #70052.

fyi @bruvzg

YuriSizov avatar Feb 05 '23 17:02 YuriSizov

This should be already fixed.

bruvzg avatar Feb 05 '23 17:02 bruvzg