-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Triple click in text editor now uses last mouse position for validity #51498
Conversation
Shouldn't there be a tolerance of a few pixels for unintentional mouse movement? I checked on Firefox/GTK3 on Linux and triple click select seems to work if I'm moving very slightly while still triple clicking fast. Not sure what the tolerance used is but it might 5 px or something. |
You're correct, I've never noticed this! Although it doesn't seem to be the case on VSCode, it seems like everywhere else there is indeed a tolerance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Could you squash the commits into one? See PR workflow for instructions.
8066ffb
to
e2c30ab
Compare
e2c30ab
to
bc18925
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Damn it, you beat me to it by a day...
I am just gonna blame my slow internet and the good weather.
Is the Linux CI failure something I should concern myself with? |
The CI log says:
Edit: This is an issue with a PR that was merged today, and was fixed by #51523 since. I recommend rebasing on the latest |
Previously, you would be able to double click a word, followed by single-clicking another word on the same line, which would select the entire line. Now, it will only select the whole line if the mouse position has remained the same after the double click. This mimicks the behavior in most third party text editors. Fixes godotengine#51312.
bc18925
to
408401a
Compare
Thanks! And congrats for your first merged Godot contribution 🎉 |
Cherry-picked for 3.4. |
Previously, you would be able to double click a word, followed by single-clicking another word on the same line, which would select the entire line. Now, it will only select the whole line if the mouse position has remained the same after the double click. This mimics the behavior in most third party text editors.
This fixes #51312.