Fix event transform in ViewportContainer

This commit is contained in:
Markus Sauermann 2022-04-04 22:28:06 +02:00 committed by Relintai
parent 9e0a1c88a0
commit e1a8b0befe

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;