Files
soroban-abacus-flashcards/apps/web
Thomas Hallock b0cd194838 fix(card-sorting): stabilize inferred sequence for locked cards during drag
When dragging suffix cards into position, the inferred sequence was
constantly recalculating based on the card's real-time position,
causing suffix detection to flicker on/off. This created instability
when trying to place suffix cards.

Solution:
- Store stable positions for locked (prefix/suffix) cards in a ref
- Use stable positions instead of live positions for inference
- Clean up ref when cards are no longer locked
- Add useMemo import for stable card states computation

This ensures that once a card is locked in correct position, its
position in the inferred sequence remains stable even when other
cards are being dragged nearby.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 22:36:44 -05:00
..