Skip to content

fix(tabs): a dragged tab can reach first place (#125) - #126

Merged
Maxaubert merged 2 commits into
mainfrom
fix/125-tab-drag-first
Oct 4, 2026
Merged

Maxaubert merged 2 commits into
mainfrom
fix/125-tab-drag-first

Conversation

@Maxaubert

Copy link
Copy Markdown
Owner

Closes #125.

  • Cause: while dragging, the carried tab's centre had to pass the first tab's centre, but the tab is clamped to the strip. A tab as wide as the first one or wider could never get there.
  • Fix: the leading edge decides now (lib/tabDrop.ts): going left, the left edge must pass a lane's middle; going right, the right edge must.
  • Version: 0.28.2.

Gate:

  • typecheck, lint and unit (1243) pass.
  • Full headless e2e: all scenarios pass.
  • New tabDragFirst e2e does a real mouse drag of a wider tab to first place and back. It fails on the old code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FHHaWKR4M5QtW7Wecyuk4t

Maxaubert and others added 2 commits October 4, 2026 13:22
The carried tab's centre had to pass the first tab's centre while the tab
is clamped to the strip, so a tab as wide as the first or wider never got
there. Its leading edge decides now (lib/tabDrop.ts, unit tested); the
tabDragFirst e2e drags a wider tab to first and back, and fails on the old
code. Version 0.28.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FHHaWKR4M5QtW7Wecyuk4t
# Conflicts:
#	package-lock.json
#	package.json
@Maxaubert
Maxaubert merged commit 7da9ac6 into main Oct 4, 2026
2 checks passed
@Maxaubert
Maxaubert deleted the fix/125-tab-drag-first branch October 4, 2026 11:34
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.

A tab cannot be dragged to the first place when it is as wide as the first tab or wider

1 participant