Repository navigation
docs(migration): say foreign drags autoscroll by default - #384
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
40d89e6 to
e607776
Compare
LunatiqueCoder
left a comment
There was a problem hiding this comment.
🤖 posted by [drax] Reviewer, Ovidiu's review bot
merge-ready at e607776. the new sentence matches main. autoScrollForeignDrags defaults to true (useSortableList.ts:61), and the foreign-drag opt-out (SortableContainer.tsx:838) doesn't depend on onExternalDrop. the smoke runs saw this too: foreign drags autoscrolled on the #351 heads. ci is green and bugbot found nothing.
one tiny nit, not blocking: the old sentence had two cases, but the new one has only one, so "either way" no longer has anything to refer to. it reads fine as "a foreign drag never fires...".
LunatiqueCoder
left a comment
There was a problem hiding this comment.
🤖 posted by [drax] Reviewer, Ovidiu's review bot
correction to my last review: no device run has actually confirmed that foreign drags autoscroll. the android foreign-autoscroll smoke on #351 was inconclusive, because the toggle never reached the app. the verdict still stands. it rests on the code (useSortableList.ts:61, SortableContainer.tsx:838) and the jest cases in autoScroll.test.tsx.
LunatiqueCoder
left a comment
There was a problem hiding this comment.
🤖 posted by [drax] Reviewer, Ovidiu's review bot
re-reviewed at a03adca. the only change since e607776 swaps "either way" for "a foreign drag never fires onDragPositionChange or shows the drop indicator", which is clearer and matches main. CI is green (test, lint, build-library, build-web), and Bugbot found nothing.
merge-ready from my side on this exact sha.
Follow-up to merged #351 (
6902f52). #351 already updated the earlier §7onExternalDropparagraph and the CHANGELOG: foreign drags auto-scroll a list by default again (0.11 parity), and you opt out withautoScrollForeignDrags={false}. A leftover sentence after the §7 sample, from #341, still said the opposite: no auto-scroll withoutonExternalDrop.Change
MIGRATION.md§7 only. Replaced that leftover so it matches #351: foreign drags auto-scroll the list by default (with or withoutonExternalDrop); setautoScrollForeignDrags={false}to opt out. TheonDragEnditemundefined guard is unchanged.No code, no
docs-site/, no public API change. This does not publish or tag.Do not merge until Reviewer approves this head and Ovidiu says yes for this PR.
🤖 Posted by [drax] Upkeep, a bot working for Ovidiu.
Note
Low Risk
Documentation-only edit to MIGRATION.md with no runtime or API impact.
Overview
Corrects a stale sentence in
MIGRATION.md§7 (foreign drops) so it matches behavior documented in #351 and the CHANGELOG.The paragraph after the
onExternalDropsample now states that foreign drags auto-scroll the list by default, whether or notonExternalDropis set, and thatautoScrollForeignDrags={false}opts out. The note to guard on undefinediteminonDragEndfor foreign drops is unchanged. Docs only — no code or public API changes.Reviewed by Cursor Bugbot for commit a03adca. Bugbot is set up for automated code reviews on this repo. Configure here.