diff --git a/Client/origin-client/scenes/collection/components/card_widget.gd b/Client/origin-client/scenes/collection/components/card_widget.gd index 64519e8..909d736 100644 --- a/Client/origin-client/scenes/collection/components/card_widget.gd +++ b/Client/origin-client/scenes/collection/components/card_widget.gd @@ -190,8 +190,14 @@ func get_definition_id() -> String: func _gui_input(event: InputEvent) -> void: - if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT: - card_pressed.emit(_definition_id) + if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT: + var mb := event as InputEventMouseButton + # Consume both press and release so neither leaks to the 3D board's + # _unhandled_input. Only emit card_pressed on a plain press — not on + # double-click (which Godot fires as a *second* pressed=true event in + # the same frame, causing an immediate select → deselect cycle). + if mb.pressed and not mb.double_click: + card_pressed.emit(_definition_id) accept_event() elif event is InputEventScreenTouch and event.pressed: card_pressed.emit(_definition_id)