mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fixes LineEdit text selection with mouse selecting more than intended
(cherry picked from commit 3d84973184)
This commit is contained in:
parent
e7772e43d3
commit
73b40d1457
1 changed files with 0 additions and 10 deletions
|
|
@ -806,16 +806,6 @@ void LineEdit::set_cursor_at_pixel_pos(int p_x) {
|
|||
pixel_ofs+=char_w;
|
||||
|
||||
if (pixel_ofs > p_x) { //found what we look for
|
||||
|
||||
|
||||
if ( (pixel_ofs-p_x) < (char_w >> 1 ) ) {
|
||||
|
||||
ofs+=1;
|
||||
} else if ( (pixel_ofs-p_x) > (char_w >> 1 ) ) {
|
||||
|
||||
ofs-=1;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue