summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-03-31 11:07:21 +0200
committerGitHub <noreply@github.com>2022-03-31 11:07:21 +0200
commitfc4e9d6299593794489a0271bebf2c528aadcc74 (patch)
treea93a28ea2e8200e0ae08e2f5ce85a97c6917308e
parent755e28e88858f796c99067cd32f3894d37700031 (diff)
parentc8573ea3dfc7221ef7129aea252b3550114c9cd4 (diff)
Merge pull request #59702 from Sauermann/fix-subviewport-container-event-transform
Fix event transform in SubViewportContainer
-rw-r--r--scene/gui/subviewport_container.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/subviewport_container.cpp b/scene/gui/subviewport_container.cpp
index 4d59a12f97..68281b6a72 100644
--- a/scene/gui/subviewport_container.cpp
+++ b/scene/gui/subviewport_container.cpp
@@ -176,7 +176,7 @@ void SubViewportContainer::input(const Ref<InputEvent> &p_event) {
return;
}
- Transform2D xform = get_global_transform();
+ Transform2D xform = get_global_transform_with_canvas();
if (stretch) {
Transform2D scale_xf;
@@ -203,7 +203,7 @@ void SubViewportContainer::unhandled_input(const Ref<InputEvent> &p_event) {
return;
}
- Transform2D xform = get_global_transform();
+ Transform2D xform = get_global_transform_with_canvas();
if (stretch) {
Transform2D scale_xf;