1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Update camera when the viewport size changes

This commit is contained in:
Emmanouil Papadeas 2024-04-06 00:09:58 +03:00
parent 971fb67db1
commit 8c0a194468

View file

@ -43,6 +43,7 @@ var should_tween := true
func _ready() -> void:
viewport.size_changed.connect(_update_viewport_transform)
Global.project_switched.connect(_project_switched)
if not DisplayServer.is_touchscreen_available():
set_process_input(false)