{"action":"created","issue":{"url":"https://api.github.com/repos/ftlabs/fastclick/issues/350","labels_url":"https://api.github.com/repos/ftlabs/fastclick/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/ftlabs/fastclick/issues/350/comments","events_url":"https://api.github.com/repos/ftlabs/fastclick/issues/350/events","html_url":"https://github.com/ftlabs/fastclick/pull/350","id":53160336,"number":350,"title":"Avoid unnecessary breakage due to blur before click","user":{"login":"kevinoid","id":336433,"avatar_url":"https://avatars.githubusercontent.com/u/336433?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinoid","html_url":"https://github.com/kevinoid","followers_url":"https://api.github.com/users/kevinoid/followers","following_url":"https://api.github.com/users/kevinoid/following{/other_user}","gists_url":"https://api.github.com/users/kevinoid/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinoid/subscriptions","organizations_url":"https://api.github.com/users/kevinoid/orgs","repos_url":"https://api.github.com/users/kevinoid/repos","events_url":"https://api.github.com/users/kevinoid/events{/privacy}","received_events_url":"https://api.github.com/users/kevinoid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-31T01:02:00Z","updated_at":"2016-01-04T04:59:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ftlabs/fastclick/pulls/350","html_url":"https://github.com/ftlabs/fastclick/pull/350","diff_url":"https://github.com/ftlabs/fastclick/pull/350.diff","patch_url":"https://github.com/ftlabs/fastclick/pull/350.patch"},"body":"Hello FastClick developers,\r\n\r\nWhile investigating the incompatibility between FastClick and recent versions of typeahead.js discussed in twitter/typeahead.js#792, I found that the source of the issue is FastClick's call to `blur()` before dispatching the synthetic click event which causes the `blur` event to fire before `click`.  This event order is not expected/supported by typeahead.js.  Although arguably this should be fixed by typeahead.js (too), since the event ordering is unnatural it seems likely that it will trip up other third-party code and therefore should be addressed in FastClick.\r\n\r\nThis PR doesn't completely fix the problem, but it limits the impact of the issue by only calling `blur()` on Android devices where it is required for proper focus behavior (as described in #24).  It could be further reduced to only the affected Android versions, but I don't currently have a suitable testing environment to determine which versions are affected.\r\n\r\nThanks for considering,\r\nKevin"},"comment":{"url":"https://api.github.com/repos/ftlabs/fastclick/issues/comments/168581583","html_url":"https://github.com/ftlabs/fastclick/pull/350#issuecomment-168581583","issue_url":"https://api.github.com/repos/ftlabs/fastclick/issues/350","id":168581583,"user":{"login":"horner","id":6094599,"avatar_url":"https://avatars.githubusercontent.com/u/6094599?v=3","gravatar_id":"","url":"https://api.github.com/users/horner","html_url":"https://github.com/horner","followers_url":"https://api.github.com/users/horner/followers","following_url":"https://api.github.com/users/horner/following{/other_user}","gists_url":"https://api.github.com/users/horner/gists{/gist_id}","starred_url":"https://api.github.com/users/horner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horner/subscriptions","organizations_url":"https://api.github.com/users/horner/orgs","repos_url":"https://api.github.com/users/horner/repos","events_url":"https://api.github.com/users/horner/events{/privacy}","received_events_url":"https://api.github.com/users/horner/received_events","type":"User","site_admin":false},"created_at":"2016-01-04T04:59:02Z","updated_at":"2016-01-04T04:59:02Z","body":"I made a mistake.  This did not fix the problem with CodeMirror.  Had to do this: https://github.com/ftlabs/fastclick/pull/448"}}