mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-30 23:19:49 +00:00
Fix canvas no longer remaining in the drag state even when the mouse is outside of it
This commit is contained in:
parent
f4f0e4047e
commit
d50ae3b00e
|
@ -20,6 +20,7 @@ func _on_ViewportContainer_mouse_entered() -> void:
|
||||||
|
|
||||||
func _on_ViewportContainer_mouse_exited() -> void:
|
func _on_ViewportContainer_mouse_exited() -> void:
|
||||||
camera.set_process_input(false)
|
camera.set_process_input(false)
|
||||||
|
camera.drag = false
|
||||||
Global.control.left_cursor.visible = false
|
Global.control.left_cursor.visible = false
|
||||||
Global.control.right_cursor.visible = false
|
Global.control.right_cursor.visible = false
|
||||||
Input.set_default_cursor_shape(Input.CURSOR_ARROW)
|
Input.set_default_cursor_shape(Input.CURSOR_ARROW)
|
||||||
|
|
Loading…
Reference in a new issue