M4: drag own tokens with prediction and rollback #72
Notifications
Due Date
No due date set.
Blocks
Depends on
#76 M4: finish — e2e audit, measurement and archive
SirStone/FFF_vtt_frozen
#71 M4: tokens, labels, statuses and lists
SirStone/FFF_vtt_frozen
Reference: SirStone/FFF_vtt_frozen#72
Reference in New Issue
Block a user
Part of #63
Goal
Drag any owned token (GM any token) at <= 20 Hz with
reqId, final send on release, optimistic sprite, rollback tween.Acceptance criteria
devbox run testgreen on a clean checkout, no test weakened or skipped, and the behaviour above proven at the seam(s) listed under "Proven at".User stories covered
Proven at
drag module, reducer move slice; e2e
Notes
Rebased onto #69 (
4534ed6) and merged asd225e95.AC evidence:
client/test/move.test.ts(drag under pointer, nack snap-on-release vs idle tween, newer ack wins, rate-limited drop, close/hello drop pending, hit test) — 134 unit tests green.client/e2e/drag.test.mjs: drag persists after reload; wall refusal rolls back with the tween caught mid-flight; authoritative frames ignored under the finger while the GM moves the token; reconnect mid-drag drops the pending map.data-camera+data-zoom), added test at zoom 0.5 and 4; a pointer starting on a controlled token stops the camera listener (no pan, asserted camera unchanged) and an empty-canvas drag still pans; pinch logic untouched.devbox run test159/159,devbox run client-test134/134,devbox run e2e19/19.viewport.tsimport inclient/src/render/modules/tiles.ts.No test weakened or skipped.