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

Allow custom scroll container #31

Closed
wants to merge 1 commit into from

Conversation

tysonnero
Copy link

@tysonnero tysonnero commented May 11, 2018

This adds the ability to set scroll containers other than the wrapped
component for more custom implementations.

For example, combining react-dnd-scrollzone with react-virtualized, and using WindowScroller with the scrollElement prop, react-dnd-scrollzone needs a way to set its container as the same scrollElement that WindowScroller uses to properly listen on scrollable areas.

This is somewhat different than #20, as this change allows you to manually set the scroll container you want to use.

Fixes #32

Tested in Chrome, Safari, FireFox, and IE11

This adds the ability to set scroll containers other than the wrapped
component for more custom implementations
@eaglus
Copy link

eaglus commented Sep 21, 2018

Please look here:
#38
I think, getScrollContainer is more general way (for some complex custom scrollers)

@tysonnero tysonnero closed this Sep 13, 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.

Allow Custom Scroll Containers
2 participants