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

Draggables inside scrollable parent (not document.body) - bug fix #86

Closed
wants to merge 0 commits into from

Conversation

dkozar
Copy link
Contributor

@dkozar dkozar commented Sep 27, 2015

Although the current version of react-draggable respects document.body scroll, there's a problem when draggables are inside of another scrollable container.

This fork makes draggable listen to a specified ancestor, rather than document.body (but it defaults to document.body if ancestor not specified).

Example: https://www.youtube.com/watch?v=FZ-L5x4E02k

Cheers!

Danko

scrollable1
scrollable2

@dkozar
Copy link
Contributor Author

dkozar commented Sep 27, 2015

Closed this one because created a new commit and pull request: #87

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.

None yet

1 participant