mirror of
https://github.com/godotengine/godot.git
synced 2025-01-17 23:42:35 +00:00
Merge pull request #6372 from waldson/master
Fixes LineEdit text selection with mouse selecting more than intended
This commit is contained in:
commit
eb1b71180e
@ -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…
Reference in New Issue
Block a user