Skip to content

Commit

Permalink
Fixed Draggable Window not receiving input
Browse files Browse the repository at this point in the history
  • Loading branch information
Visssarion committed Aug 18, 2024
1 parent 9caa8e1 commit f196259
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ func _input_event(_viewport, event, _shape_idx):
func _process(_delta):
if held_down:
get_window().position = DisplayServer.mouse_get_position() + window_delta
if not Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
var mouse_state = DisplayServer.mouse_get_button_state()
if mouse_state & MOUSE_BUTTON_MASK_LEFT == 0:
held_down = false

0 comments on commit f196259

Please sign in to comment.