Skip to content

feat: enhance drag functionality by storing initial drag state#96

Merged
elonehoo merged 1 commit intomainfrom
fix/#95
Dec 21, 2025
Merged

feat: enhance drag functionality by storing initial drag state#96
elonehoo merged 1 commit intomainfrom
fix/#95

Conversation

@elonehoo
Copy link
Copy Markdown
Member

closed #95


  • When the user starts dragging, the initial cursor position and panel sizes are stored

  • During drag, the delta (relative movement) from the initial position is calculated

  • This delta is applied to the initial panel sizes, ensuring smooth tracking without any jumps

@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 67.91% 6751 / 9941
🔵 Statements 67.9% 6945 / 10228
🔵 Functions 70.8% 2585 / 3651
🔵 Branches 59.98% 3466 / 5778
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/components/splitter/src/connect.ts 51.56% 45.45% 53.84% 52.45% 36-44, 104-128, 137-139, 143, 145, 154-157
packages/components/splitter/src/machine.ts 35.71% 11.36% 45.45% 35.05% 143-155, 158-174, 189-192, 198, 206, 214, 222, 228-254, 262, 270-321
Generated in workflow #878 for commit 593e0da by the Vitest Coverage Report Action

@elonehoo elonehoo merged commit 8bf34f0 into main Dec 21, 2025
4 checks passed
@elonehoo elonehoo deleted the fix/#95 branch December 21, 2025 01:16
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.

[BUG] Splitter ResizeTrigger drag offset issue - Panel doesn't follow cursor

1 participant