{"action":"closed","issue":{"url":"https://api.github.com/repos/PeachScript/vue-infinite-loading/issues/2","repository_url":"https://api.github.com/repos/PeachScript/vue-infinite-loading","labels_url":"https://api.github.com/repos/PeachScript/vue-infinite-loading/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/PeachScript/vue-infinite-loading/issues/2/comments","events_url":"https://api.github.com/repos/PeachScript/vue-infinite-loading/issues/2/events","html_url":"https://github.com/PeachScript/vue-infinite-loading/issues/2","id":164276148,"number":2,"title":"onInfinite not called when already scrolled down","user":{"login":"arjanwestdorp","id":7716654,"avatar_url":"https://avatars.githubusercontent.com/u/7716654?v=3","gravatar_id":"","url":"https://api.github.com/users/arjanwestdorp","html_url":"https://github.com/arjanwestdorp","followers_url":"https://api.github.com/users/arjanwestdorp/followers","following_url":"https://api.github.com/users/arjanwestdorp/following{/other_user}","gists_url":"https://api.github.com/users/arjanwestdorp/gists{/gist_id}","starred_url":"https://api.github.com/users/arjanwestdorp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjanwestdorp/subscriptions","organizations_url":"https://api.github.com/users/arjanwestdorp/orgs","repos_url":"https://api.github.com/users/arjanwestdorp/repos","events_url":"https://api.github.com/users/arjanwestdorp/events{/privacy}","received_events_url":"https://api.github.com/users/arjanwestdorp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-07T10:17:18Z","updated_at":"2016-07-19T12:05:08Z","closed_at":"2016-07-19T12:05:08Z","body":"It happens sometimes that the onInfinite is not called. I investigate and saw this was because the `currentDistance` is bigger then the `this.distance`. I think it would be nice to have a option to call the onInfinite without checking the distance in these two situations:\r\n\r\n1. When calling reset. Imagine I have on the left of my screen some filters which can be applied to show a list on the right. When i'm scrolling on the right it will fill my infinite list. But then I change filters on the left. Because I didn't scroll all the way up my `currentDistance` is too high and the list will not be reloaded.\r\n\r\n2. When initializing the control it is also better to call the onInfinite without checking the distance. Because you want the first items always be loaded.\r\n\r\nThe second thing happened to me when using the chrome developer tools and made it too high which gave a `currentDistance` bigger then 100.\r\n\r\nWhat do you think about this? If you want I can create a fix for this."}}
{"actor":{"display_login":"arjanwestdorp"}}