Skip to content

fix: make dragged pieces follow the pointer - #1

Open
i0ivi0i wants to merge 1 commit into
open-fox:mainfrom
i0ivi0i:fix/dragged-piece-follows-pointer
Open

fix: make dragged pieces follow the pointer#1
i0ivi0i wants to merge 1 commit into
open-fox:mainfrom
i0ivi0i:fix/dragged-piece-follows-pointer

Conversation

@i0ivi0i

@i0ivi0i i0ivi0i commented Jul 26, 2026

Copy link
Copy Markdown

Summary

  • move the visible piece shape with mouse or touch pointer coordinates
  • preserve board-cell preview and drop behavior while dragging
  • add an end-to-end regression test for visual pointer following and placement

Test plan

  • pnpm check
  • pnpm test
  • targeted drag E2E test
  • pnpm build
  • full pnpm e2e (8/9 pass; existing upstream assertion expects a trailing period that current rankingDescription no longer contains)

Visual verification

The regression test moves a tray piece to board cell 3,3 and verifies that its rendered center stays within 12px of the pointer before drop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant