Skip to content

clone scrollTop of childnodes inside dragged node #185

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maxnowack
Copy link

If there are scrollable elements inside of the dragged node, the scrollTop doesn't get cloned to the helper node.
This PR fixes this behavior.

Iterating through all child nodes for checking if there are scrollable elements, sounds somewhat bad from the performance perspective. I'm not sure if there is a better way for checking and cloning the scrollTop. Should I make this configurable, with a new prop (e.g. cloneScrollTop) on the SortableContainer component?

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.

1 participant