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 drag when scrolling #213

Merged
merged 3 commits into from
Jul 2, 2017
Merged

Fix drag when scrolling #213

merged 3 commits into from
Jul 2, 2017

Conversation

AlastairTaft
Copy link
Contributor

@AlastairTaft AlastairTaft commented Jun 2, 2017

This pull requests updates the code to account for window scroll position. At the moment if the user scrolls the page while they are dragging an item, all the calculations are incorrect and you see the drag item jump position equivalent to how far you've scrolled.

This makes adjustments to account for the window scroll position.

@AlastairTaft AlastairTaft changed the title Fix scroll and drag Fix drag when scrolling Jun 2, 2017
Copy link
Owner

@clauderic clauderic left a comment

Choose a reason for hiding this comment

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

Hey @AlastairTaft, just tested this and it seems to work well! Code looks good also 👍

Thanks for taking the time to submit this PR :)

@clauderic clauderic merged commit 4c08a60 into clauderic:master Jul 2, 2017
DimitarNestorov pushed a commit to codemotionapps/react-sortable-hoc that referenced this pull request Feb 4, 2019
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