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

Use in scrollable div, not just on body scroll #122

Closed
wants to merge 2 commits into from

Conversation

matthewoestreich
Copy link

@matthewoestreich matthewoestreich commented Sep 6, 2019

I am unsure if this PR conflicts with the intended use of this component, specifically the containerRef property, but this modification solved a use case I had. It also solves this open issue.

You can now use a container which will trigger all events for nested ScrollTrigger components.

I have built an detailed live demo, which you can view here, as well as the demo code, which is at this repo.

@ryanhefner
Copy link
Owner

Hey @oze4,

Thanks for submitting this, and apologies on the delayed response. Do you think you could update the formatting in the src/index.js page to match the existing 2 space tab format? One, easier to see what changed, but also for consistency.

Thanks!
Ryan

@RickMeasham
Copy link

@ryanhefner This got closed by @oze4 and moved to done by the bot .. but it doesn't look like it got merged. Has the underlying issue been fixed elsewhere?

@ryanhefner
Copy link
Owner

@RickMeasham No, don’t think so. I would have been happy to merge in Matt’s updates, but his formatting change made the whole file a diff, opposed to just the changes he made. I might have some time this weekend to review the changes he made and look at maybe porting some of those to get this to work within a scrollable container.

I will close #66 once that work is done.

@RickMeasham
Copy link

Thanks mate

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.

3 participants