mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-26 21:57:16 +01:00
Fix event transform in ViewportContainer
This commit is contained in:
parent
9e0a1c88a0
commit
e1a8b0befe
@ -147,7 +147,7 @@ void ViewportContainer::_input(const Ref<InputEvent> &p_event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform2D xform = get_global_transform();
|
Transform2D xform = get_global_transform_with_canvas();
|
||||||
|
|
||||||
if (stretch) {
|
if (stretch) {
|
||||||
Transform2D scale_xf;
|
Transform2D scale_xf;
|
||||||
@ -174,7 +174,7 @@ void ViewportContainer::_unhandled_input(const Ref<InputEvent> &p_event) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Transform2D xform = get_global_transform();
|
Transform2D xform = get_global_transform_with_canvas();
|
||||||
|
|
||||||
if (stretch) {
|
if (stretch) {
|
||||||
Transform2D scale_xf;
|
Transform2D scale_xf;
|
||||||
|
Loading…
Reference in New Issue
Block a user