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

Enabled scroll-glue to work on the body element. #13

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

Conversation

marcells
Copy link

Hi,

I made scroll-glue work on body elements. In that case you've to register on the window.onscroll event. The calculation in shouldActivateAutoScroll() is a bit different to normal elements, too.

I tried to create karma tests for the extended behavior, but if I understand it correctly, the compiled templates will be appended below the body element. That would result in two nested body tags, which obviously doesn't work.

Kind regards
Marcell

@oliversalzburg
Copy link
Collaborator

Would you be able to rebase this change on the latest master branch, in case it is still valid?

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.

2 participants