You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace cell-based drag detection with pixel-distance threshold
Replace dragMovedToNewCell flag with a 5px pixel-distance threshold
for selection drag detection. This prevents jitter from creating
accidental selections while allowing precise single-char selection
via intentional drag.
- Track mousedown pixel position (mouseDownX/mouseDownY)
- Only begin selection once mouse moves ≥5px from mousedown
- Use squared distance comparison (no sqrt needed)
- Clear selection on mouseup if threshold was never met
0 commit comments