{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5022","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5022/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5022/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5022/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/5022","id":114676431,"number":5022,"title":"Touch events now prevent mouse events","user":{"login":"Hamms","id":244100,"avatar_url":"https://avatars.githubusercontent.com/u/244100?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamms","html_url":"https://github.com/Hamms","followers_url":"https://api.github.com/users/Hamms/followers","following_url":"https://api.github.com/users/Hamms/following{/other_user}","gists_url":"https://api.github.com/users/Hamms/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamms/subscriptions","organizations_url":"https://api.github.com/users/Hamms/orgs","repos_url":"https://api.github.com/users/Hamms/repos","events_url":"https://api.github.com/users/Hamms/events{/privacy}","received_events_url":"https://api.github.com/users/Hamms/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-02T20:22:12Z","updated_at":"2015-11-02T20:37:00Z","closed_at":"2015-11-02T20:37:00Z","pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/5022","html_url":"https://github.com/code-dot-org/code-dot-org/pull/5022","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/5022.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/5022.patch"},"body":"Our click+touch event handler binds to both mouse and touch events. Some\r\nbrowsers (most notably IE10+) fire both events simultaneously for each\r\naction, while others (iOS Safari) will fire first one event, then the\r\nsecond after some delay. This causes all of our click events to actually\r\nbe double-clicks, which is a problem for elements that invoke a toggle\r\naction.\r\n\r\nThis PR causes the touch events to unbind mouse events, so that our\r\nhandlers only get called once per user action."},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/153149129","html_url":"https://github.com/code-dot-org/code-dot-org/pull/5022#issuecomment-153149129","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/5022","id":153149129,"user":{"login":"bcjordan","id":206973,"avatar_url":"https://avatars.githubusercontent.com/u/206973?v=3","gravatar_id":"","url":"https://api.github.com/users/bcjordan","html_url":"https://github.com/bcjordan","followers_url":"https://api.github.com/users/bcjordan/followers","following_url":"https://api.github.com/users/bcjordan/following{/other_user}","gists_url":"https://api.github.com/users/bcjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/bcjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcjordan/subscriptions","organizations_url":"https://api.github.com/users/bcjordan/orgs","repos_url":"https://api.github.com/users/bcjordan/repos","events_url":"https://api.github.com/users/bcjordan/events{/privacy}","received_events_url":"https://api.github.com/users/bcjordan/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T20:37:00Z","updated_at":"2015-11-02T20:37:00Z","body":"LGTM though Asher's concern could mean this approach won't work"}}