feat(kanban): add grab-to-pan board scrolling (salvage #59830) - #60226
Merged
Conversation
Adds grab-to-pan horizontal scrolling to the Kanban dashboard board columns with grab/grabbing cursor feedback. Card drag-and-drop, add buttons, checkboxes, links, and inputs are excluded from panning, the native horizontal scrollbar remains usable as a fallback, and panning state is cleared on mouse release or window blur. Salvaged from PR #59830 by @vampyren (original commit authored under an unlinked local git identity; rewritten to their GitHub noreply address to preserve attribution).
4 tasks
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
Salvage of PR #59830 by @vampyren — adds grab-to-pan horizontal scrolling to the Kanban dashboard board columns, so navigating wide boards no longer requires hunting for the thin native scrollbar.
The original PR's code was clean and current, but its commit was authored under an unlinked local git identity (
Rex <rex@local>), failing the attribution check. This salvage cherry-picks the change with authorship rewritten to @vampyren's GitHub noreply address so contributor credit is preserved in git history.Changes
plugins/kanban/dashboard/dist/index.js: mousedown grab-to-pan handler on the board columns container — drag empty board space to scroll horizontally; cards, buttons, checkboxes, links, and inputs are excluded so card drag-and-drop and controls keep working; bottom 20px preserved so the native scrollbar remains usable; listeners cleaned up on mouseup, window blur, and unmount; ResizeObserver-driven--scrollableclass gates the grab cursor.plugins/kanban/dashboard/dist/style.css:grab/grabbingcursor feedback classes.scripts/release.py: AUTHOR_MAP entry for vampyren.Validation
node --check dist/index.jsscripts/run_tests.sh tests/plugins/test_kanban_dashboard_plugin.pyCloses #59830.
Infographic