Skip to content

fix: allow dragging past overlapping edges - #3462

Merged
adumesny merged 1 commit into
gridstack:masterfrom
febug:fix/overlapping-axis-drag-coverage
Nov 13, 2026
Merged

adumesny merged 1 commit into
gridstack:masterfrom
febug:fix/overlapping-axis-drag-coverage

Conversation

@yuxino

@yuxino yuxino commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Description

With the layout from #3447 in top mode, dragging widget 1 straight upward snaps it back to the bottom row. The direction check now permits the move once it crosses widget 0's vertical midpoint, while keeping the >50% threshold.

gridstack-3447-before-after.mp4

A sequence of browser screenshots, 1080p; loading waits omitted. The demo uses the layout from the issue.

Fixes #3447.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test and yarn test:coverage)
  • Extended the README / documentation, if necessary (not needed for this fix)

@adumesny
adumesny merged commit 400eb8c into gridstack:master Nov 13, 2026
@adumesny

Copy link
Copy Markdown
Member

thank you for the fix!

@yuxino
yuxino deleted the fix/overlapping-axis-drag-coverage branch November 13, 2026 01:41
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.

Dragging upwards does not always work

2 participants