From 9a9f86ec12bb925d5f760df9c6daa26cea7bda56 Mon Sep 17 00:00:00 2001 From: Markus Sauermann <6299227+Sauermann@users.noreply.github.com> Date: Mon, 4 Apr 2022 22:28:06 +0200 Subject: [PATCH] Fix event transform in ViewportContainer --- scene/gui/viewport_container.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scene/gui/viewport_container.cpp b/scene/gui/viewport_container.cpp index bee711ff7d1..e748a6c1059 100644 --- a/scene/gui/viewport_container.cpp +++ b/scene/gui/viewport_container.cpp @@ -147,7 +147,7 @@ void ViewportContainer::_input(const Ref &p_event) { return; } - Transform2D xform = get_global_transform(); + Transform2D xform = get_global_transform_with_canvas(); if (stretch) { Transform2D scale_xf; @@ -174,7 +174,7 @@ void ViewportContainer::_unhandled_input(const Ref &p_event) { return; } - Transform2D xform = get_global_transform(); + Transform2D xform = get_global_transform_with_canvas(); if (stretch) { Transform2D scale_xf;