{"action":"closed","issue":{"url":"https://api.github.com/repos/elementary/mvp/issues/132","labels_url":"https://api.github.com/repos/elementary/mvp/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/elementary/mvp/issues/132/comments","events_url":"https://api.github.com/repos/elementary/mvp/issues/132/events","html_url":"https://github.com/elementary/mvp/issues/132","id":55310256,"number":132,"title":"Block scrolling while modal is open","user":{"login":"danrabbit","id":7277719,"avatar_url":"https://avatars.githubusercontent.com/u/7277719?v=3","gravatar_id":"","url":"https://api.github.com/users/danrabbit","html_url":"https://github.com/danrabbit","followers_url":"https://api.github.com/users/danrabbit/followers","following_url":"https://api.github.com/users/danrabbit/following{/other_user}","gists_url":"https://api.github.com/users/danrabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/danrabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrabbit/subscriptions","organizations_url":"https://api.github.com/users/danrabbit/orgs","repos_url":"https://api.github.com/users/danrabbit/repos","events_url":"https://api.github.com/users/danrabbit/events{/privacy}","received_events_url":"https://api.github.com/users/danrabbit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-23T17:44:55Z","updated_at":"2015-01-25T21:07:33Z","closed_at":"2015-01-25T21:07:33Z","body":"We need to block scrolling of the body while the modal is open. This includes:\r\n\r\n* Two finger touchpad\r\n* 'touchmove'\r\n* arrow keys\r\n* 'mousewheel'\r\n* Clicking and dragging the scroll bar\r\n\r\nI have a bit of code from the ChiFi site, but for some reason it doesn't seem to work with leanModal\r\n\r\n```\r\n$('.dialog-background').on('scroll touchmove mousewheel', function (e) {\r\n    e.preventDefault();\r\n    e.stopPropagation();\r\n    return false;\r\n});\r\n```"}}