From f021869131f9be4f2c5d5fc8ae0741f49d20e569 Mon Sep 17 00:00:00 2001 From: Anthony Wilcox <35226681+tomiscw@users.noreply.github.com> Date: Mon, 31 Dec 2018 23:34:47 -0500 Subject: [PATCH] Switched to rect_global_position in second if statement --- src/ItemDrag.gd | 2 +- src/WindowControl.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ItemDrag.gd b/src/ItemDrag.gd index 8e16f76..8399c13 100644 --- a/src/ItemDrag.gd +++ b/src/ItemDrag.gd @@ -13,4 +13,4 @@ func _on_outfit_gui_input(ev): item_pos = null if ev is InputEventMouseMotion and item_pos != null: - rect_position = get_global_mouse_position() - item_pos + rect_global_position = get_global_mouse_position() - item_pos diff --git a/src/WindowControl.gd b/src/WindowControl.gd index 5e22ce0..a257da6 100644 --- a/src/WindowControl.gd +++ b/src/WindowControl.gd @@ -36,7 +36,7 @@ func _on_TitleBar_gui_input(ev): if ev is InputEventMouseMotion and drag_pos != null: - rect_position = get_global_mouse_position() - drag_pos + rect_global_position = get_global_mouse_position() - drag_pos func _on_CloseBtn_pressed(): hide()