Files
sor/Client
f5621d6285 Fix: defer z_index + tween to prevent Godot GUI re-triggering card press
Setting widget.z_index = 20 synchronously while a mouse button is held causes
Godot 4 to re-evaluate GUI focus and deliver a synthetic second pressed=true
event to the widget.  This fired card_pressed a second time in the same frame,
making _on_hand_card_clicked see the card already selected → immediate deselect.

Fix: move tween creation and z_index assignment into a new _tween_hand_card()
helper, called via call_deferred() so it runs after the current input event is
fully processed (mouse button already released by then).

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-03-08 14:09:40 -04:00
..