Fix Control::warp_mouse to respect canvas transform
This commit is contained in:
parent
5ba3b993d5
commit
0472839509
1 changed files with 1 additions and 1 deletions
|
@ -2939,7 +2939,7 @@ Control::MouseFilter Control::get_mouse_filter() const {
|
|||
|
||||
void Control::warp_mouse(const Point2 &p_position) {
|
||||
ERR_FAIL_COND(!is_inside_tree());
|
||||
get_viewport()->warp_mouse(get_global_transform().xform(p_position));
|
||||
get_viewport()->warp_mouse(get_global_transform_with_canvas().xform(p_position));
|
||||
}
|
||||
|
||||
bool Control::is_text_field() const {
|
||||
|
|
Loading…
Reference in a new issue