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

Support for scroller events #6

Open
felipe-pereira opened this issue Aug 15, 2014 · 1 comment
Open

Support for scroller events #6

felipe-pereira opened this issue Aug 15, 2014 · 1 comment

Comments

@felipe-pereira
Copy link

Hi, I'm using your wrapper and needed to bind some behavior to the scroll, in this case the 'scrollend' event (very useful to implement an infinite scroll).

To see how it worked in my solution I added this on the link of the directive;

if(attr.scrollend)
  element.bind('scrollend', function () {
    scope.$apply(attr.scrollend);
  });

and this on the html...

<scrollable scrollend="loadMyObjects()">

It worked like a charm.

Now that we are here, related to this particular event, there is a hack that causes this event to fire twice, maybe you could see if the hack is still needed.

Let me know what you think about this, thanks.

@greuff
Copy link

greuff commented Jun 27, 2016

+1

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