{"action":"created","issue":{"url":"https://api.github.com/repos/funkhaus/vuepress/issues/108","repository_url":"https://api.github.com/repos/funkhaus/vuepress","labels_url":"https://api.github.com/repos/funkhaus/vuepress/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/funkhaus/vuepress/issues/108/comments","events_url":"https://api.github.com/repos/funkhaus/vuepress/issues/108/events","html_url":"https://github.com/funkhaus/vuepress/issues/108","id":315537360,"node_id":"MDU6SXNzdWUzMTU1MzczNjA=","number":108,"title":"Add scrollUp function","user":{"login":"SaFrMo","id":5344587,"node_id":"MDQ6VXNlcjUzNDQ1ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/5344587?v=4","gravatar_id":"","url":"https://api.github.com/users/SaFrMo","html_url":"https://github.com/SaFrMo","followers_url":"https://api.github.com/users/SaFrMo/followers","following_url":"https://api.github.com/users/SaFrMo/following{/other_user}","gists_url":"https://api.github.com/users/SaFrMo/gists{/gist_id}","starred_url":"https://api.github.com/users/SaFrMo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaFrMo/subscriptions","organizations_url":"https://api.github.com/users/SaFrMo/orgs","repos_url":"https://api.github.com/users/SaFrMo/repos","events_url":"https://api.github.com/users/SaFrMo/events{/privacy}","received_events_url":"https://api.github.com/users/SaFrMo/received_events","type":"User","site_admin":false},"labels":[{"id":583158439,"node_id":"MDU6TGFiZWw1ODMxNTg0Mzk=","url":"https://api.github.com/repos/funkhaus/vuepress/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-18T15:45:33Z","updated_at":"2018-06-14T14:29:43Z","closed_at":"2018-06-14T14:29:43Z","author_association":"CONTRIBUTOR","body":"```\r\n// smooth scroll to top of page\r\nexport const scrollUp = () => {\r\n    return new Promise((resolve, reject) => {\r\n        const sTop = window.pageYOffset || document.documentElement.scrollTop\r\n        if (sTop <= 10) return resolve()\r\n\r\n        const speed = Math.min(sTop, 500)\r\n        const scroller = scrollToElement(document.body, {\r\n            duration: speed,\r\n            ease: 'inOutQuad'\r\n        })\r\n        if (scroller) scroller.on('end', resolve)\r\n        else reject()\r\n    })\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/funkhaus/vuepress/issues/comments/397316389","html_url":"https://github.com/funkhaus/vuepress/issues/108#issuecomment-397316389","issue_url":"https://api.github.com/repos/funkhaus/vuepress/issues/108","id":397316389,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzMxNjM4OQ==","user":{"login":"SaFrMo","id":5344587,"node_id":"MDQ6VXNlcjUzNDQ1ODc=","avatar_url":"https://avatars2.githubusercontent.com/u/5344587?v=4","gravatar_id":"","url":"https://api.github.com/users/SaFrMo","html_url":"https://github.com/SaFrMo","followers_url":"https://api.github.com/users/SaFrMo/followers","following_url":"https://api.github.com/users/SaFrMo/following{/other_user}","gists_url":"https://api.github.com/users/SaFrMo/gists{/gist_id}","starred_url":"https://api.github.com/users/SaFrMo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaFrMo/subscriptions","organizations_url":"https://api.github.com/users/SaFrMo/orgs","repos_url":"https://api.github.com/users/SaFrMo/repos","events_url":"https://api.github.com/users/SaFrMo/events{/privacy}","received_events_url":"https://api.github.com/users/SaFrMo/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T14:29:43Z","updated_at":"2018-06-14T14:29:43Z","author_association":"CONTRIBUTOR","body":"Added in 303eb49!"}}
{"actor":{"display_login":"SaFrMo"}}