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

Selecting text with drag sometimes instantly select all text to previous caret position #94211

Closed
Giganzo opened this issue Jul 11, 2024 · 4 comments · Fixed by #95008
Closed

Comments

@Giganzo
Copy link
Contributor

Giganzo commented Jul 11, 2024

Tested versions

Godot v4.3.beta2
Godot v4.3.beta3

System information

Godot v4.3.beta3 - Fedora Linux 39 (KDE Plasma) - X11 - Vulkan (Forward+) - nvidia; 555.58.02

Issue description

Selecting text with drag sometimes instantly select all text to previous caret position.

First thought my mouse button was going bad, but don't seem to happen in 4.2.2

Also don't think I have seen this on windows.

Could it be related to?: #94077

Steps to reproduce

Place your caret somewhere in the code.
Then try to select some text at another place.

Minimal reproduction project (MRP)

N/A

@alvinhochun
Copy link
Contributor

Does this happen with 4.3 beta 1?
Perhaps an X11 version of #93078 (possible regression by #92424)?

@Giganzo
Copy link
Contributor Author

Giganzo commented Jul 11, 2024

Does this happen with 4.3 beta 1?

I haven't been able to reproduce it in beta 1 when testing now

@kitbdev
Copy link
Contributor

kitbdev commented Jul 13, 2024

It looks like this is happening because an InputEventMouseMotion with a mouse mask is sent before an InputEventMouseButton pressed event, same as #93078 as mentioned above.

This applies to all Controls, but I could make a workaround just for TextEdit if needed.

@akien-mga
Copy link
Member

CC @bruvzg

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

Successfully merging a pull request may close this issue.

6 participants