From d50ae3b00e024abfd12800667b583993f1f8aac0 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:49:11 +0300 Subject: [PATCH] Fix canvas no longer remaining in the drag state even when the mouse is outside of it --- src/UI/ViewportContainer.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/ViewportContainer.gd b/src/UI/ViewportContainer.gd index dde0bb6e8..e0966199b 100644 --- a/src/UI/ViewportContainer.gd +++ b/src/UI/ViewportContainer.gd @@ -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)