Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scrollable ancestors bug #769

Merged
merged 2 commits into from
May 27, 2022
Merged

Conversation

clauderic
Copy link
Owner

This PR fixes two issues: an issue with scrollable ancestors detection and an issue with stale containerNodeRect properties when its scrollable ancestors were scrolled.

The scrollable ancestors should be determined by the active node or the over node exclusively. The `draggingNode` variable shouldn't be used to detect scrollable ancestors since it can be the drag overlay node, and the drag overlay node doesn't have any scrollable ancestors because it is a fixed position element.
Fixed an issue with the `containerNodeRect` that is exposed to modifiers having stale properties (`top`, `left`, etc.) when its scrollable ancestors were scrolled.
@changeset-bot
Copy link

changeset-bot bot commented May 27, 2022

🦋 Changeset detected

Latest commit: 8e3599f

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

This PR includes changesets to release 1 package
Name Type
@dnd-kit/core Patch

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

@clauderic clauderic linked an issue May 27, 2022 that may be closed by this pull request
@clauderic clauderic merged commit 919f21a into master May 27, 2022
@clauderic clauderic deleted the fix-scrollable-ancestors-bug branch May 27, 2022 19:27
@github-actions github-actions bot mentioned this pull request May 27, 2022
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.

Scrolling not working after updating library
1 participant