Repository navigation
馃悰(frontend) fix drag-and-drop move disabled by viewport breakpoint on tree - #2788
Merged
Merged
Conversation
Contributor
|
Size Change: -144 B (0%) Total Size: 4.08 MB 馃摝 View Changed
|
AntoLC
force-pushed
the
fix/2599-dnd-move-breakpoint
branch
from
October 6, 2026 09:52
69afe38 to
65ac931
Compare
Drag-and-drop to move a document was disabled below a viewport width breakpoint. Browser zoom shrinks window.innerWidth like a narrower window does, so zooming in on a desktop with a mouse silently disabled moving documents, in the docs grid and in the doc tree. A fix was made on the doc grid, but not in the tree, we updated useResponsiveStore to tell us if the window has coarse pointer or not (hasCoarsePointer). Closes #2599
AntoLC
force-pushed
the
fix/2599-dnd-move-breakpoint
branch
from
October 16, 2026 13:53
65ac931 to
5bb089e
Compare
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.
Purpose
Drag-and-drop to move a document was disabled below a viewport width breakpoint. Browser zoom shrinks
window.innerWidthlike a narrower window does, so zooming in on a desktop with a mouse silently disabled moving documents, in the docs grid and in the doc tree.Fixes #2599
Proposal
hasCoarsePointerflag touseResponsiveStore, backed by the(pointer: coarse)media queryisLargeScreen/isDesktopto gate move drag-and-drop in the docs grid (DocGridContentList) and the doc tree (DocTreeSubpages)