Merge pull request #59702 from Sauermann/fix-subviewport-container-event-transform

Fix event transform in SubViewportContainer
This commit is contained in:
Rémi Verschelde 2022-03-31 11:07:21 +02:00 committed by GitHub
commit fc4e9d6299
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;