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

Unable to scrollTop 0 #201

Closed
satazor opened this issue Dec 5, 2013 · 1 comment · Fixed by #203
Closed

Unable to scrollTop 0 #201

satazor opened this issue Dec 5, 2013 · 1 comment · Fixed by #203
Labels

Comments

@satazor
Copy link
Contributor

satazor commented Dec 5, 2013

Issue is that 0 is evaluated to false here: https://github.com/jamesflorentino/nanoScrollerJS/blob/master/bin/javascripts/jquery.nanoscroller.js#L865

Possible solutions are typeof options.scrollTop === 'number' or options.scrollTop != null.

Same thing happens with scrollBottom.

@kristerkari
Copy link
Collaborator

Yup, need to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants