{"action":"created","issue":{"url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll/issues/209","repository_url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll","labels_url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll/issues/209/comments","events_url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll/issues/209/events","html_url":"https://github.com/rintoj/angular2-virtual-scroll/issues/209","id":344066179,"node_id":"MDU6SXNzdWUzNDQwNjYxNzk=","number":209,"title":"How to get an index of currently visible top item?","user":{"login":"mnasyrov","id":445680,"node_id":"MDQ6VXNlcjQ0NTY4MA==","avatar_url":"https://avatars2.githubusercontent.com/u/445680?v=4","gravatar_id":"","url":"https://api.github.com/users/mnasyrov","html_url":"https://github.com/mnasyrov","followers_url":"https://api.github.com/users/mnasyrov/followers","following_url":"https://api.github.com/users/mnasyrov/following{/other_user}","gists_url":"https://api.github.com/users/mnasyrov/gists{/gist_id}","starred_url":"https://api.github.com/users/mnasyrov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnasyrov/subscriptions","organizations_url":"https://api.github.com/users/mnasyrov/orgs","repos_url":"https://api.github.com/users/mnasyrov/repos","events_url":"https://api.github.com/users/mnasyrov/events{/privacy}","received_events_url":"https://api.github.com/users/mnasyrov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-24T14:35:56Z","updated_at":"2018-07-24T14:48:20Z","closed_at":null,"author_association":"NONE","body":"Is there a way to get an index of a current item which is at the top of viewport?\r\nAs I understand \"start\", \"end\"  and \"change\" events provide indexes of a slice of items which is bigger than a visible viewport.\r\nIt would be nice to have events for visible items like \"visibleStart\" or \"visibleEnd\".\r\n"},"comment":{"url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll/issues/comments/407434076","html_url":"https://github.com/rintoj/angular2-virtual-scroll/issues/209#issuecomment-407434076","issue_url":"https://api.github.com/repos/rintoj/angular2-virtual-scroll/issues/209","id":407434076,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzQzNDA3Ng==","user":{"login":"speige","id":2002030,"node_id":"MDQ6VXNlcjIwMDIwMzA=","avatar_url":"https://avatars1.githubusercontent.com/u/2002030?v=4","gravatar_id":"","url":"https://api.github.com/users/speige","html_url":"https://github.com/speige","followers_url":"https://api.github.com/users/speige/followers","following_url":"https://api.github.com/users/speige/following{/other_user}","gists_url":"https://api.github.com/users/speige/gists{/gist_id}","starred_url":"https://api.github.com/users/speige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/speige/subscriptions","organizations_url":"https://api.github.com/users/speige/orgs","repos_url":"https://api.github.com/users/speige/repos","events_url":"https://api.github.com/users/speige/events{/privacy}","received_events_url":"https://api.github.com/users/speige/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T14:48:20Z","updated_at":"2018-07-24T14:48:20Z","author_association":"COLLABORATOR","body":"Start would be the top visible item unless you have unequalChildItems or\nbufferAmount set. For single column you can do start - bufferAmount, for\nmultiColumn it'd be start - bufferAmount*numColumns. However, as you scroll\ndown the start won't change until the last pixel of the top item\ndisappears, so it can seem like it's slightly off.\n\nMaybe we should change this behavior to be more intuitive? I'm wondering if\nwe compare pixel positions & see which rendered item's center is closest to\nthe top & bottom.\n\nOn Tue, Jul 24, 2018, 8:35 AM Mikhail Nasyrov <notifications@github.com>\nwrote:\n\n> Is there a way to get an index of a current item which is at the top of\n> viewport?\n> As I understand \"start\", \"end\" and \"change\" events provide indexes of a\n> slice of items which is bigger than a visible viewport.\n> It would be nice to have events for visible items like \"visibleStart\" or\n> \"visibleEnd\".\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/rintoj/angular2-virtual-scroll/issues/209>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AB6MbgZl-lcengRL6fW5QsWgKyqLb_sdks5uJzDNgaJpZM4Vc3by>\n> .\n>\n"}}
{"actor":{"display_login":"speige"}}