mirror of
https://github.com/godotengine/godot.git
synced 2024-12-04 01:52:56 +00:00
Merge pull request #59702 from Sauermann/fix-subviewport-container-event-transform
Fix event transform in SubViewportContainer
This commit is contained in:
commit
fc4e9d6299
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user