fix: improve drag-and-drop scroll sensitivity in columns#103
Merged
ManukMinasyan merged 1 commit into4.xfrom Apr 10, 2026
Merged
fix: improve drag-and-drop scroll sensitivity in columns#103ManukMinasyan merged 1 commit into4.xfrom
ManukMinasyan merged 1 commit into4.xfrom
Conversation
Enhance SortableJS configuration for column containers to make dragging cards to off-screen positions (top/bottom of scrollable columns) much easier. The default scroll sensitivity was too low for nested overflow containers. Closes #102
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the drag-and-drop auto-scroll behavior for kanban columns by updating the underlying SortableJS scroll settings on Filament’s x-sortable containers, making it easier to drag cards to off-screen positions within scrollable columns.
Changes:
- Add an Alpine helper (
enhanceSortableScroll) to update SortableJS options for all[x-sortable]elements in the Flowforge component. - Invoke the helper on component initialization via
$nextTick. - Rebuild the bundled Alpine component output.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| resources/js/flowforge.js | Adds enhanceSortableScroll() and calls it on init to increase scroll sensitivity/speed and enable forceAutoScrollFallback. |
| resources/dist/flowforge.js | Updates the compiled/minified distribution build to include the new behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scrollSensitivity: 100(from default 30),scrollSpeed: 15, andforceAutoScrollFallback: trueRoot Cause
Filament's
x-sortabledirective creates SortableJS instances without configuringforceAutoScrollFallback, which is needed for proper auto-scroll in nested overflow containers. The defaultscrollSensitivityof 30px was also too conservative for column-based kanban layouts.Test plan
Closes #102