Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

ScrollFix does not set the initial state #88

Closed
heliodor opened this issue Aug 2, 2013 · 2 comments
Closed

ScrollFix does not set the initial state #88

heliodor opened this issue Aug 2, 2013 · 2 comments

Comments

@heliodor
Copy link

heliodor commented Aug 2, 2013

The ScrollFix module binds a listener to the scroll event, but it does not set the initial state.

Instead of

$target.bind('scroll', function () {...});

I'd make it

var scrollListener = function () {...};
$target.bind('scroll', scrollListener);
scrollListener(); // sets the initial state

@PowerKiKi
Copy link
Contributor

UI.Utils modules was split in individuals repositories. If still valid, please consider re-submitting the issue on its dedicated repository: https://github.com/angular-ui/ui-scrollpoint

See the README for details.

@heliodor
Copy link
Author

heliodor commented Jul 2, 2015

Ok, done. angular-ui/ui-scrollpoint#1

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

No branches or pull requests

2 participants