{"action":"created","issue":{"url":"https://api.github.com/repos/chrsmith/html5rocks/issues/94","labels_url":"https://api.github.com/repos/chrsmith/html5rocks/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/chrsmith/html5rocks/issues/94/comments","events_url":"https://api.github.com/repos/chrsmith/html5rocks/issues/94/events","html_url":"https://github.com/chrsmith/html5rocks/issues/94","id":59518915,"number":94,"title":"Mouse gesture support","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chrsmith/html5rocks/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/html5rocks/labels/Milestone-X","name":"Milestone-X","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/html5rocks/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/html5rocks/labels/Slides","name":"Slides","color":"ededed"},{"url":"https://api.github.com/repos/chrsmith/html5rocks/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-02T18:09:34Z","updated_at":"2015-03-02T18:09:34Z","closed_at":"2015-03-02T18:09:34Z","body":"```\nReported by david.b.calhoun, May 11, 2010\nHere's a simple enhancement that adds mouse gesture support:\n\n\nvar gestureThreshold = 30;\n\nvar addGestureListeners = function() {\n  document.addEventListener('mousedown', function(e) {\n    touchStartX = e.screenX;\n  }, false);\n  \n  document.addEventListener('mouseup', function(e) {\n    var curX = e.screenX;\n    \n    if((touchStartX - curX) > gestureThreshold) {         // left\n      prevSlide();\n    } else if((curX - touchStartX) > gestureThreshold) {  // right\n      nextSlide();\n    }\n  }, false);\n};\n\n\nThis is called right after addTouchListeners is called:\n\n// mouse gesture support\naddGestureListeners();\n```\n\nOriginal issue reported on code.google.com by `paulir...@google.com` on 28 Jul 2010 at 9:51"},"comment":{"url":"https://api.github.com/repos/chrsmith/html5rocks/issues/comments/76765642","html_url":"https://github.com/chrsmith/html5rocks/issues/94#issuecomment-76765642","issue_url":"https://api.github.com/repos/chrsmith/html5rocks/issues/94","id":76765642,"user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T18:09:34Z","updated_at":"2015-03-02T18:09:34Z","body":"\n\nOriginal comment by `paulir...@google.com` on 28 Jul 2010 at 9:52\n* Added labels: **slides**"}}