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

Fix canvas no longer remaining in the drag state even when the mouse is outside of it

This commit is contained in:
Emmanouil Papadeas 2024-07-12 14:49:11 +03:00
parent f4f0e4047e
commit d50ae3b00e

View file

@ -20,6 +20,7 @@ func _on_ViewportContainer_mouse_entered() -> void:
func _on_ViewportContainer_mouse_exited() -> void:
camera.set_process_input(false)
camera.drag = false
Global.control.left_cursor.visible = false
Global.control.right_cursor.visible = false
Input.set_default_cursor_shape(Input.CURSOR_ARROW)