You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #18298 from gabrii/TextEditScaledSelection
TextEdit scaled selection
This commit is contained in:
@@ -447,7 +447,7 @@ void TextEdit::_click_selection_held() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TextEdit::_update_selection_mode_pointer() {
|
void TextEdit::_update_selection_mode_pointer() {
|
||||||
Point2 mp = Input::get_singleton()->get_mouse_position() - get_global_position();
|
Point2 mp = get_local_mouse_position();
|
||||||
|
|
||||||
int row, col;
|
int row, col;
|
||||||
_get_mouse_pos(Point2i(mp.x, mp.y), row, col);
|
_get_mouse_pos(Point2i(mp.x, mp.y), row, col);
|
||||||
@@ -462,7 +462,7 @@ void TextEdit::_update_selection_mode_pointer() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TextEdit::_update_selection_mode_word() {
|
void TextEdit::_update_selection_mode_word() {
|
||||||
Point2 mp = Input::get_singleton()->get_mouse_position() - get_global_position();
|
Point2 mp = get_local_mouse_position();
|
||||||
|
|
||||||
int row, col;
|
int row, col;
|
||||||
_get_mouse_pos(Point2i(mp.x, mp.y), row, col);
|
_get_mouse_pos(Point2i(mp.x, mp.y), row, col);
|
||||||
@@ -515,7 +515,7 @@ void TextEdit::_update_selection_mode_word() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TextEdit::_update_selection_mode_line() {
|
void TextEdit::_update_selection_mode_line() {
|
||||||
Point2 mp = Input::get_singleton()->get_mouse_position() - get_global_position();
|
Point2 mp = get_local_mouse_position();
|
||||||
|
|
||||||
int row, col;
|
int row, col;
|
||||||
_get_mouse_pos(Point2i(mp.x, mp.y), row, col);
|
_get_mouse_pos(Point2i(mp.x, mp.y), row, col);
|
||||||
|
|||||||
Reference in New Issue
Block a user