cards and posts will pass mouse events even when they are not draggable
This commit is contained in:
parent
f507b9b890
commit
9b632bdf8e
|
|
@ -143,9 +143,10 @@ func _on_input_event(viewport, event, shape_idx):
|
|||
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT:
|
||||
if is_dragable and "handle_mouse_button" in owner:
|
||||
if "handle_mouse_button" in owner:
|
||||
mouse_offset = (get_viewport().get_mouse_position() - position)
|
||||
if highlighted: owner.handle_mouse_button(self, event)
|
||||
if highlighted:
|
||||
owner.handle_mouse_button(self, event)
|
||||
|
||||
func _move_card():
|
||||
if is_dragged:
|
||||
|
|
|
|||
|
|
@ -96,7 +96,7 @@ func _on_input_event(viewport, event, shape_idx):
|
|||
|
||||
if event is InputEventMouseButton:
|
||||
if event.button_index == MOUSE_BUTTON_LEFT:
|
||||
if is_dragable and "handle_mouse_button" in owner:
|
||||
if "handle_mouse_button" in owner:
|
||||
mouse_offset = (get_viewport().get_mouse_position() - global_position)
|
||||
owner.handle_mouse_button(self, event)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue