{"action":"created","issue":{"url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/226","repository_url":"https://api.github.com/repos/sroze/ngInfiniteScroll","labels_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/226/comments","events_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/226/events","html_url":"https://github.com/sroze/ngInfiniteScroll/pull/226","id":119967494,"number":226,"title":"Fixed infinite-scroll-immediate-check behavior","user":{"login":"sergiovilar","id":860636,"avatar_url":"https://avatars.githubusercontent.com/u/860636?v=3","gravatar_id":"","url":"https://api.github.com/users/sergiovilar","html_url":"https://github.com/sergiovilar","followers_url":"https://api.github.com/users/sergiovilar/followers","following_url":"https://api.github.com/users/sergiovilar/following{/other_user}","gists_url":"https://api.github.com/users/sergiovilar/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiovilar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiovilar/subscriptions","organizations_url":"https://api.github.com/users/sergiovilar/orgs","repos_url":"https://api.github.com/users/sergiovilar/repos","events_url":"https://api.github.com/users/sergiovilar/events{/privacy}","received_events_url":"https://api.github.com/users/sergiovilar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-02T15:32:48Z","updated_at":"2016-03-09T18:15:02Z","closed_at":"2016-01-14T00:21:10Z","pull_request":{"url":"https://api.github.com/repos/sroze/ngInfiniteScroll/pulls/226","html_url":"https://github.com/sroze/ngInfiniteScroll/pull/226","diff_url":"https://github.com/sroze/ngInfiniteScroll/pull/226.diff","patch_url":"https://github.com/sroze/ngInfiniteScroll/pull/226.patch"},"body":"When you add `infinite-scroll-immediate-check=\"true\"` to directive, ngInfiniteScroll only call the pagination callback once. \r\n\r\nIf even with the first load made by `infinite-scroll-immediate-check` the page content doesn't generate a scroll, ngInfiniteScroll will not trigger the pagination callback again. This causes a problem because ngInfiniteScroll needs the user get to the bottom to call the pagination callback again.\r\n\r\nThis PR calls the handler() until a scroll appear on the page, solving the problem.\r\n\r\nI believe that he guys at #219 had the same problem."},"comment":{"url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/comments/194432593","html_url":"https://github.com/sroze/ngInfiniteScroll/pull/226#issuecomment-194432593","issue_url":"https://api.github.com/repos/sroze/ngInfiniteScroll/issues/226","id":194432593,"user":{"login":"jvmccarthy","id":1642221,"avatar_url":"https://avatars.githubusercontent.com/u/1642221?v=3","gravatar_id":"","url":"https://api.github.com/users/jvmccarthy","html_url":"https://github.com/jvmccarthy","followers_url":"https://api.github.com/users/jvmccarthy/followers","following_url":"https://api.github.com/users/jvmccarthy/following{/other_user}","gists_url":"https://api.github.com/users/jvmccarthy/gists{/gist_id}","starred_url":"https://api.github.com/users/jvmccarthy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvmccarthy/subscriptions","organizations_url":"https://api.github.com/users/jvmccarthy/orgs","repos_url":"https://api.github.com/users/jvmccarthy/repos","events_url":"https://api.github.com/users/jvmccarthy/events{/privacy}","received_events_url":"https://api.github.com/users/jvmccarthy/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T18:15:02Z","updated_at":"2016-03-09T18:15:02Z","body":"Yes, protractor sync issues also led me to this busy loop."}}