{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/8037","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/8037/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/8037/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/8037/events","html_url":"https://github.com/driftyco/ionic/issues/8037","id":176119843,"number":8037,"title":"Ionic 2 beta 11 virtual scroll and infinite scroll autoscrolls up after update","user":{"login":"theromis","id":3720229,"avatar_url":"https://avatars.githubusercontent.com/u/3720229?v=3","gravatar_id":"","url":"https://api.github.com/users/theromis","html_url":"https://github.com/theromis","followers_url":"https://api.github.com/users/theromis/followers","following_url":"https://api.github.com/users/theromis/following{/other_user}","gists_url":"https://api.github.com/users/theromis/gists{/gist_id}","starred_url":"https://api.github.com/users/theromis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theromis/subscriptions","organizations_url":"https://api.github.com/users/theromis/orgs","repos_url":"https://api.github.com/users/theromis/repos","events_url":"https://api.github.com/users/theromis/events{/privacy}","received_events_url":"https://api.github.com/users/theromis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/infinitescroll","name":"infinitescroll","color":"006b75"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744"},{"url":"https://api.github.com/repos/driftyco/ionic/labels/virtualscroll","name":"virtualscroll","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-09T21:52:23Z","updated_at":"2016-10-05T15:59:30Z","closed_at":null,"body":"Trying to build contact list with about 10k nodes, my assumption was to combine virtualScroll and infinite-scroll controller, so my page is like below:\r\n```html\r\n<ion-content>\r\n      <ion-list [virtualScroll]=\"contacts\">\r\n        <ion-item *virtualItem=\"let contact\">\r\n....\r\n        </ion-item>\r\n      </ion-list>\r\n\r\n      <ion-infinite-scroll (ionInfinite)=\"doInfiniteInvitation($event)\">\r\n        <ion-infinite-scroll-content></ion-infinite-scroll-content>\r\n      </ion-infinite-scroll>\r\n</ion-content>\r\n```\r\nand .ts controller\r\n```javascript\r\n  doInfiniteInvitation(infiniteScroll) {\r\n    console.log('doInfiniteInvitation');\r\n    this.contactsService.contact_invitations()\r\n    .then(contacts => {\r\n      for (var i = 0; i < contacts.length; i++) {\r\n        this.contacts.push(contacts[i]);\r\n      }\r\n\r\n      infiniteScroll.complete();\r\n      console.log('doInfiniteInvitation done');\r\n    });\r\n  }\r\n```\r\n\r\nso after every doInfiniteInvitation call it resets to the top position, is it possible somehow avoid this \"feature\"?\r\nmay be  [virtualTrackBy]=\"virtualTrack\" can help with that?"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/251718110","html_url":"https://github.com/driftyco/ionic/issues/8037#issuecomment-251718110","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/8037","id":251718110,"user":{"login":"AzzamAsghar","id":17752351,"avatar_url":"https://avatars.githubusercontent.com/u/17752351?v=3","gravatar_id":"","url":"https://api.github.com/users/AzzamAsghar","html_url":"https://github.com/AzzamAsghar","followers_url":"https://api.github.com/users/AzzamAsghar/followers","following_url":"https://api.github.com/users/AzzamAsghar/following{/other_user}","gists_url":"https://api.github.com/users/AzzamAsghar/gists{/gist_id}","starred_url":"https://api.github.com/users/AzzamAsghar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AzzamAsghar/subscriptions","organizations_url":"https://api.github.com/users/AzzamAsghar/orgs","repos_url":"https://api.github.com/users/AzzamAsghar/repos","events_url":"https://api.github.com/users/AzzamAsghar/events{/privacy}","received_events_url":"https://api.github.com/users/AzzamAsghar/received_events","type":"User","site_admin":false},"created_at":"2016-10-05T15:59:30Z","updated_at":"2016-10-05T15:59:30Z","body":"And i think this line has nothing to do with items not showing until you scroll down a bit after loading is done with infinite scroll. do share your thoughts on that."}}
{"actor":{"display_login":"AzzamAsghar"}}