Skip to content

Add shouldScroll predicate to AutoScroller (closes #2070)#2085

Open
timagixe wants to merge 3 commits into
clauderic:mainfrom
timagixe:issues/2070
Open

Add shouldScroll predicate to AutoScroller (closes #2070)#2085
timagixe wants to merge 3 commits into
clauderic:mainfrom
timagixe:issues/2070

Conversation

@timagixe

@timagixe timagixe commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

PR Description

Closes #2070.

Summary

  • Adds AutoScroller.configure({shouldScroll}) to let consumers filter scrollable auto-scroll candidates.
  • Keeps existing default auto-scroll behavior unchanged.
  • Documents the new option with a scrollable sortable-item example.
  • Adds a controlled Storybook example for scrollable sibling items.
  • Adds unit and e2e coverage for predicate behavior and the AutoScroller scrolls sibling draggables #2070 sibling-scroll case.
  • Adds a changeset for @dnd-kit/dom.

Verification

  • run test
  • run test:e2e
  • run build

@changeset-bot

changeset-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9f9e8ad

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@dnd-kit/dom Minor
@dnd-kit/react Minor
@dnd-kit/solid Minor
@dnd-kit/svelte Minor
@dnd-kit/vue Minor
@dnd-kit/abstract Minor
@dnd-kit/collision Minor
@dnd-kit/geometry Minor
@dnd-kit/helpers Minor
@dnd-kit/state Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Jun 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

@dnd-kit/abstract

npm i https://pkg.pr.new/@dnd-kit/abstract@2085

@dnd-kit/collision

npm i https://pkg.pr.new/@dnd-kit/collision@2085

@dnd-kit/dom

npm i https://pkg.pr.new/@dnd-kit/dom@2085

@dnd-kit/geometry

npm i https://pkg.pr.new/@dnd-kit/geometry@2085

@dnd-kit/helpers

npm i https://pkg.pr.new/@dnd-kit/helpers@2085

@dnd-kit/react

npm i https://pkg.pr.new/@dnd-kit/react@2085

@dnd-kit/solid

npm i https://pkg.pr.new/@dnd-kit/solid@2085

@dnd-kit/state

npm i https://pkg.pr.new/@dnd-kit/state@2085

@dnd-kit/svelte

npm i https://pkg.pr.new/@dnd-kit/svelte@2085

@dnd-kit/vue

npm i https://pkg.pr.new/@dnd-kit/vue@2085

commit: 9f9e8ad

@jindong-zhannng

Copy link
Copy Markdown

@timagixe looks good to me. @clauderic could you move it forward?

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.

AutoScroller scrolls sibling draggables

2 participants