fix(engine): clicking the waste card no longer draws from stock #104
Reference in New Issue
Block a user
Delete Branch "fix/waste-click-draws"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported on /play: clicking the drawn card just draws the next one instead of letting you move it.
Cause: handle_stock_click (and handle_touch_stock_tap) hit-tested both the deck AND the waste slot, so a click on the waste card fired DrawRequestEvent — and it swallowed the first click of a double-click, so double-click-to-auto-move never fired on the waste either.
Fix: only the face-down deck draws. The waste card is now free to play (double-click/double-tap to auto-move, or drag).
wasm-feeding change -> web-wasm-rebuild regenerates canvas_bg.wasm and redeploys /play after merge.