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

Added support for a container to scroll in #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Added support for a container to scroll in #24

wants to merge 4 commits into from

Conversation

mrenty
Copy link

@mrenty mrenty commented Dec 10, 2015

No description provided.

!!this.options.container
? this.start = this.options.container.getBoundingClientRect().top
: this.start = window.pageYOffset

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seem not working, try:

    !!this.options.container
      ?  this.start = this.options.container.scrollTo
      :  this.start = window.pageYOffset

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I adjusted the calculations and removed this part of code, now it should be much smoother. If you have trouble getting it to work please let me know and I'll try to help out.

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