Merge pull request #59892 from Sauermann/fix-3x-subviewport-container-event-transform

This commit is contained in:
Rémi Verschelde 2022-04-05 00:00:09 +02:00 committed by GitHub
commit 169234e5e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,7 @@ void ViewportContainer::_input(const Ref<InputEvent> &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<InputEvent> &p_event) {
return;
}
Transform2D xform = get_global_transform();
Transform2D xform = get_global_transform_with_canvas();
if (stretch) {
Transform2D scale_xf;