{"action":"opened","issue":{"url":"https://api.github.com/repos/Codeinwp/movatique/issues/8","labels_url":"https://api.github.com/repos/Codeinwp/movatique/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Codeinwp/movatique/issues/8/comments","events_url":"https://api.github.com/repos/Codeinwp/movatique/issues/8/events","html_url":"https://github.com/Codeinwp/movatique/issues/8","id":53999977,"number":8,"title":"Smooth scroll ","user":{"login":"robi09","id":4840427,"avatar_url":"https://avatars.githubusercontent.com/u/4840427?v=3","gravatar_id":"","url":"https://api.github.com/users/robi09","html_url":"https://github.com/robi09","followers_url":"https://api.github.com/users/robi09/followers","following_url":"https://api.github.com/users/robi09/following{/other_user}","gists_url":"https://api.github.com/users/robi09/gists{/gist_id}","starred_url":"https://api.github.com/users/robi09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robi09/subscriptions","organizations_url":"https://api.github.com/users/robi09/orgs","repos_url":"https://api.github.com/users/robi09/repos","events_url":"https://api.github.com/users/robi09/events{/privacy}","received_events_url":"https://api.github.com/users/robi09/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Codeinwp/movatique/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"robciucioan","id":8695094,"avatar_url":"https://avatars.githubusercontent.com/u/8695094?v=3","gravatar_id":"","url":"https://api.github.com/users/robciucioan","html_url":"https://github.com/robciucioan","followers_url":"https://api.github.com/users/robciucioan/followers","following_url":"https://api.github.com/users/robciucioan/following{/other_user}","gists_url":"https://api.github.com/users/robciucioan/gists{/gist_id}","starred_url":"https://api.github.com/users/robciucioan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robciucioan/subscriptions","organizations_url":"https://api.github.com/users/robciucioan/orgs","repos_url":"https://api.github.com/users/robciucioan/repos","events_url":"https://api.github.com/users/robciucioan/events{/privacy}","received_events_url":"https://api.github.com/users/robciucioan/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-01-11T18:32:20Z","updated_at":"2015-01-11T18:32:20Z","closed_at":null,"body":"Adaugare smooth scroll ( cu posibilitate de disable din customizer ).\r\n\r\n```javascript\r\n//Reset mouse scroll\r\n    if (window.addEventListener) window.addEventListener('DOMMouseScroll', wheel, false);\r\n    window.onmousewheel = document.onmousewheel = wheel;\r\n\r\n    function wheel(event) {\r\n        var delta = 0;\r\n        if (event.wheelDelta) delta = event.wheelDelta / 120;\r\n        else if (event.detail) delta = -event.detail / 3;\r\n\r\n        handle(delta);\r\n        if (event.preventDefault) event.preventDefault();\r\n        event.returnValue = false;\r\n    }\r\n\r\n    function handle(delta) {\r\n        var time = 200;\r\n        var distance = 120; //in px\r\n        \r\n        $('html, body').stop().animate({\r\n            scrollTop: $(window).scrollTop() - (distance * delta)\r\n        }, time );\r\n    }\r\n```\r\n@ineagu sa confirmi editarea"}}