Fix event transform in SubViewportContainer
The transform does not take the canvas transform into account.
This commit is contained in:
parent
5ba3b993d5
commit
c8573ea3df
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ void SubViewportContainer::input(const Ref<InputEvent> &p_event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform2D xform = get_global_transform();
|
Transform2D xform = get_global_transform_with_canvas();
|
||||||
|
|
||||||
if (stretch) {
|
if (stretch) {
|
||||||
Transform2D scale_xf;
|
Transform2D scale_xf;
|
||||||
|
@ -203,7 +203,7 @@ void SubViewportContainer::unhandled_input(const Ref<InputEvent> &p_event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform2D xform = get_global_transform();
|
Transform2D xform = get_global_transform_with_canvas();
|
||||||
|
|
||||||
if (stretch) {
|
if (stretch) {
|
||||||
Transform2D scale_xf;
|
Transform2D scale_xf;
|
||||||
|
|
Loading…
Reference in a new issue