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

Need help: Site consist of two sticky parts #44

Open
Artem-Schander opened this issue Jan 12, 2021 · 0 comments
Open

Need help: Site consist of two sticky parts #44

Artem-Schander opened this issue Jan 12, 2021 · 0 comments

Comments

@Artem-Schander
Copy link

Artem-Schander commented Jan 12, 2021

Hi, many thanks for this package. It works great so far.
Unfortunately I have a logical issue which I could not solve with given configuration possibilities.

On one of my current project, some pages have a 50/50 layout. The left and the right parts can both have more content than the other / than window.innerHeight.
The idea is to make both parts sticky. So that either one of them can stick around while scrolling the other, or both of them scroll as far as possible and get stuck when they can not be scrolled further.

The first use case works fine. So as long as only the left or the right half can be scrolled, everything works as expected.
But as soon as both can be scrolled, one of them will stick until the other gets scrolled down completely.

I tried to solve it by tinkering around with the sticky-side option, but without success.

I hope it is clear what I mean and someone can help me with that one.


EDIT

BTW
The only sticky-side option that seems to be working, is both

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

No branches or pull requests

1 participant