{"action":"created","issue":{"url":"https://api.github.com/repos/sakabako/scrollMonitor/issues/34","labels_url":"https://api.github.com/repos/sakabako/scrollMonitor/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/sakabako/scrollMonitor/issues/34/comments","events_url":"https://api.github.com/repos/sakabako/scrollMonitor/issues/34/events","html_url":"https://github.com/sakabako/scrollMonitor/issues/34","id":56505252,"number":34,"title":"Regular event for scrolling on tablets (iOS)","user":{"login":"Jugibur","id":271000,"avatar_url":"https://avatars.githubusercontent.com/u/271000?v=3","gravatar_id":"","url":"https://api.github.com/users/Jugibur","html_url":"https://github.com/Jugibur","followers_url":"https://api.github.com/users/Jugibur/followers","following_url":"https://api.github.com/users/Jugibur/following{/other_user}","gists_url":"https://api.github.com/users/Jugibur/gists{/gist_id}","starred_url":"https://api.github.com/users/Jugibur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jugibur/subscriptions","organizations_url":"https://api.github.com/users/Jugibur/orgs","repos_url":"https://api.github.com/users/Jugibur/repos","events_url":"https://api.github.com/users/Jugibur/events{/privacy}","received_events_url":"https://api.github.com/users/Jugibur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-04T09:52:03Z","updated_at":"2015-02-04T16:59:56Z","closed_at":null,"body":"I've tested the script on the iPad (no other tablet systems).\r\nThe downside here is that it only fires the event, after the scrolling ended – so 1-2 seconds delay because of the deceleration phase.\r\nIs there a way to send an event during the active scrolling phase on iOS?\r\nThanks so far for your good work!"},"comment":{"url":"https://api.github.com/repos/sakabako/scrollMonitor/issues/comments/72893016","html_url":"https://github.com/sakabako/scrollMonitor/issues/34#issuecomment-72893016","issue_url":"https://api.github.com/repos/sakabako/scrollMonitor/issues/34","id":72893016,"user":{"login":"sakabako","id":339327,"avatar_url":"https://avatars.githubusercontent.com/u/339327?v=3","gravatar_id":"","url":"https://api.github.com/users/sakabako","html_url":"https://github.com/sakabako","followers_url":"https://api.github.com/users/sakabako/followers","following_url":"https://api.github.com/users/sakabako/following{/other_user}","gists_url":"https://api.github.com/users/sakabako/gists{/gist_id}","starred_url":"https://api.github.com/users/sakabako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakabako/subscriptions","organizations_url":"https://api.github.com/users/sakabako/orgs","repos_url":"https://api.github.com/users/sakabako/repos","events_url":"https://api.github.com/users/sakabako/events{/privacy}","received_events_url":"https://api.github.com/users/sakabako/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T16:59:56Z","updated_at":"2015-02-04T16:59:56Z","body":"I have good news and bad news.\r\n\r\nThe good news is that in iOS 8 scroll events are triggered as the user scrolls. With time this issue will fall to the wayside.\r\n\r\nThe bad news is that in iOS 7 and before the browser will refuse to run any javascript at all between the tine the user starts scrolling and when momentum finishes. All timers, requestAnimationFrame, events, and callbacks from ajax requests are halted. Android does the same.\r\n\r\nIt would be possible to make a library that intercepts the scrolls, uses RAF to change the scrollTop of the document and emulates momentum, but I that's outside the scope of this project.\r\n\r\nIf you're up for the challenge of making that library, it might be easier than you think. You can use RAF and this library to determine your scrollTop values: https://github.com/arian/cubic-bezier\r\n\r\nA very accurate feeling quadratic for Android momentum is `cubic-bezier(0.103, 0.389, 0.307, 0.966)`."}}