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

On Events #29

Open
matheusml opened this issue Dec 5, 2014 · 1 comment
Open

On Events #29

matheusml opened this issue Dec 5, 2014 · 1 comment

Comments

@matheusml
Copy link

Hey,
I'd like to know if there's a way to trigger an event when the user reached the bottom of the scroll.
Thanks!

@TakeshiDaveau
Copy link

I agree with this feature request, furthermor it should be nice if there is an event for the bottom and for the top.

EDIT :
To add the event when top is reaching you can add these lines 68

if(dragger.top === 0) {
    scope.$emit('scrollbar.toTop');
}
if(page.scrollHeight + page.top - page.height === 0) {
    scope.$emit('scrollbar.toBottom');
}

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

2 participants