mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 06:03:38 +00:00
Fix bad mouse offset with Control::wrap_mouse()
This commit is contained in:
parent
46d384060e
commit
083ff9a133
@ -2590,7 +2590,7 @@ Control *Control::get_focus_owner() const {
|
||||
|
||||
void Control::warp_mouse(const Point2 &p_to_pos) {
|
||||
ERR_FAIL_COND(!is_inside_tree());
|
||||
get_viewport()->warp_mouse(get_screen_transform().xform(p_to_pos));
|
||||
get_viewport()->warp_mouse(get_global_transform().xform(p_to_pos));
|
||||
}
|
||||
|
||||
bool Control::is_text_field() const {
|
||||
|
Loading…
Reference in New Issue
Block a user