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

Issue with update dinamicaly scrooll #71

Open
catiraumihail opened this issue Feb 8, 2017 · 0 comments
Open

Issue with update dinamicaly scrooll #71

catiraumihail opened this issue Feb 8, 2017 · 0 comments

Comments

@catiraumihail
Copy link

Sorry for my bad english :).

Update to N px issue - content bottom must be at the bottom of viewport.

How to check this issue.
I have in content some blocks (elements). I try to dynamically scroll to this elements.
Call method update(element.top), if this is last element there is space above it instead to place this item
at the bottom of viewport.

How to fix:

//after line 184: check if content bottom is the same as  viewport bottom
    if((this.contentSize - this.contentPosition - 1) < this.viewportSize){
            // set viewport bottom = content bottom
	this.contentPosition = Math.max(this.contentSize - this.viewportSize, 0);
}
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