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 a regression with the KeyboardSensor's scrolling logic #797

Merged
merged 2 commits into from
Jun 14, 2022

Conversation

clauderic
Copy link
Owner

@clauderic clauderic commented Jun 14, 2022

There was a regression introduced in 750d726 with the KeyboardSensor's scrolling logic.

When the KeyboardSensor can scroll to the new coordinates but there is a delta on the opposite axis (for example, if we can scroll on the y axis but there is a delta on the x axis) the KeyboardSensor would scroll to the maxScroll or minScroll coordinates instead of the new scroll coordinates.

@changeset-bot
Copy link

changeset-bot bot commented Jun 14, 2022

🦋 Changeset detected

Latest commit: d06ecbd

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 self-assigned this Jun 14, 2022
@clauderic clauderic merged commit 4f13835 into master Jun 14, 2022
@github-actions github-actions bot mentioned this pull request Jun 14, 2022
@clauderic clauderic deleted the keyboard-sensor-fixes branch June 14, 2022 17:16

break;
}
}

console.log(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

2 participants