{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/1767","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/1767/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/1767/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/1767/events","html_url":"https://github.com/ampproject/amphtml/pull/1767","id":131171935,"number":1767,"title":"Added scroll trigger.","user":{"login":"avimehta","id":179359,"avatar_url":"https://avatars.githubusercontent.com/u/179359?v=3","gravatar_id":"","url":"https://api.github.com/users/avimehta","html_url":"https://github.com/avimehta","followers_url":"https://api.github.com/users/avimehta/followers","following_url":"https://api.github.com/users/avimehta/following{/other_user}","gists_url":"https://api.github.com/users/avimehta/gists{/gist_id}","starred_url":"https://api.github.com/users/avimehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avimehta/subscriptions","organizations_url":"https://api.github.com/users/avimehta/orgs","repos_url":"https://api.github.com/users/avimehta/repos","events_url":"https://api.github.com/users/avimehta/events{/privacy}","received_events_url":"https://api.github.com/users/avimehta/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/NEEDS%20REVIEW","name":"NEEDS REVIEW","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"cramforce","id":89679,"avatar_url":"https://avatars.githubusercontent.com/u/89679?v=3","gravatar_id":"","url":"https://api.github.com/users/cramforce","html_url":"https://github.com/cramforce","followers_url":"https://api.github.com/users/cramforce/followers","following_url":"https://api.github.com/users/cramforce/following{/other_user}","gists_url":"https://api.github.com/users/cramforce/gists{/gist_id}","starred_url":"https://api.github.com/users/cramforce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramforce/subscriptions","organizations_url":"https://api.github.com/users/cramforce/orgs","repos_url":"https://api.github.com/users/cramforce/repos","events_url":"https://api.github.com/users/cramforce/events{/privacy}","received_events_url":"https://api.github.com/users/cramforce/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-03T22:16:35Z","updated_at":"2016-02-04T08:28:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ampproject/amphtml/pulls/1767","html_url":"https://github.com/ampproject/amphtml/pull/1767","diff_url":"https://github.com/ampproject/amphtml/pull/1767.diff","patch_url":"https://github.com/ampproject/amphtml/pull/1767.patch"},"body":"- Updated the example file to have more content so that scroll events can be changed.\r\n- Instead of passing individual config params, pass in whole config into `addListener`.\r\n- Added `scrollWidth`\r\n- Added `scroll` event\r\n- Updated `test-amp-analytics` to use an actual `window` object instead of a fake. As functionality increases, mocking all the properties of window will become painful.\r\n- Updated documentation.\r\n\r\nFixes #1490 \r\n\r\ncc @rudygalfi "},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/179706811","html_url":"https://github.com/ampproject/amphtml/pull/1767#issuecomment-179706811","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/1767","id":179706811,"user":{"login":"avimehta","id":179359,"avatar_url":"https://avatars.githubusercontent.com/u/179359?v=3","gravatar_id":"","url":"https://api.github.com/users/avimehta","html_url":"https://github.com/avimehta","followers_url":"https://api.github.com/users/avimehta/followers","following_url":"https://api.github.com/users/avimehta/following{/other_user}","gists_url":"https://api.github.com/users/avimehta/gists{/gist_id}","starred_url":"https://api.github.com/users/avimehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avimehta/subscriptions","organizations_url":"https://api.github.com/users/avimehta/orgs","repos_url":"https://api.github.com/users/avimehta/repos","events_url":"https://api.github.com/users/avimehta/events{/privacy}","received_events_url":"https://api.github.com/users/avimehta/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T08:28:30Z","updated_at":"2016-02-04T08:28:30Z","body":"ptal. added documentation for scroll trigger."}}