fix(engine): double-click moves exactly the clicked run (#158) #167
Reference in New Issue
Block a user
Delete Branch "fix/158-double-click-exact-stack"
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?
Fixes #158.
Double-click/tap auto-move previously tried the run's top card alone before the full run headed by the clicked card, so a top card with a foundation move hijacked the intended whole-stack move.
Changes:
auto_move_for_run: the move always covers exactly the run from the clicked/tapped card — a lone top card goes foundation-first, a multi-card run moves whole to a tableau or not at all (rejected with sound + shake).handle_double_click(mouse) andhandle_double_tap(touch) both route through it; the duplicated priority blocks are gone.cargo test --workspace(931 engine tests) andcargo clippy --workspace -- -D warningsare clean.🤖 Generated with Claude Code