{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-ui/ui-scrollpoint/issues/1","labels_url":"https://api.github.com/repos/angular-ui/ui-scrollpoint/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-scrollpoint/issues/1/comments","events_url":"https://api.github.com/repos/angular-ui/ui-scrollpoint/issues/1/events","html_url":"https://github.com/angular-ui/ui-scrollpoint/issues/1","id":92558070,"number":1,"title":"Initial state is not set","user":{"login":"heliodor","id":395678,"avatar_url":"https://avatars.githubusercontent.com/u/395678?v=3","gravatar_id":"","url":"https://api.github.com/users/heliodor","html_url":"https://github.com/heliodor","followers_url":"https://api.github.com/users/heliodor/followers","following_url":"https://api.github.com/users/heliodor/following{/other_user}","gists_url":"https://api.github.com/users/heliodor/gists{/gist_id}","starred_url":"https://api.github.com/users/heliodor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heliodor/subscriptions","organizations_url":"https://api.github.com/users/heliodor/orgs","repos_url":"https://api.github.com/users/heliodor/repos","events_url":"https://api.github.com/users/heliodor/events{/privacy}","received_events_url":"https://api.github.com/users/heliodor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-02T06:11:32Z","updated_at":"2015-07-02T06:11:32Z","closed_at":null,"body":"This lib binds a listener to the scroll event, but it does not set the initial state.\r\n\r\nInstead of\r\n\r\n$target.on('scroll', onScroll);\r\n\r\nI'd make it\r\n\r\n$target.on('scroll', onScroll);\r\nonScroll(); // sets the initial state\r\n"}}