{"action":"created","issue":{"url":"https://api.github.com/repos/jquery/jquery/issues/2168","labels_url":"https://api.github.com/repos/jquery/jquery/issues/2168/labels{/name}","comments_url":"https://api.github.com/repos/jquery/jquery/issues/2168/comments","events_url":"https://api.github.com/repos/jquery/jquery/issues/2168/events","html_url":"https://github.com/jquery/jquery/issues/2168","id":64379095,"number":2168,"title":"Find out which mouse buttons are pressed","user":{"login":"00v1","id":1660266,"avatar_url":"https://avatars.githubusercontent.com/u/1660266?v=3","gravatar_id":"","url":"https://api.github.com/users/00v1","html_url":"https://github.com/00v1","followers_url":"https://api.github.com/users/00v1/followers","following_url":"https://api.github.com/users/00v1/following{/other_user}","gists_url":"https://api.github.com/users/00v1/gists{/gist_id}","starred_url":"https://api.github.com/users/00v1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00v1/subscriptions","organizations_url":"https://api.github.com/users/00v1/orgs","repos_url":"https://api.github.com/users/00v1/repos","events_url":"https://api.github.com/users/00v1/events{/privacy}","received_events_url":"https://api.github.com/users/00v1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-25T21:38:48Z","updated_at":"2015-03-25T21:52:58Z","closed_at":null,"body":"I need a way to check which mouse button is pressed.\r\nI tried to record mousedown and mouseup events, but when I release two mouse buttons off screen, only one mouseup event is fired.\r\nAlso I can not cheat around it by using mouseleave events.\r\n\r\nhttp://jsfiddle.net/3gfa05gd/3/"},"comment":{"url":"https://api.github.com/repos/jquery/jquery/issues/comments/86229690","html_url":"https://github.com/jquery/jquery/issues/2168#issuecomment-86229690","issue_url":"https://api.github.com/repos/jquery/jquery/issues/2168","id":86229690,"user":{"login":"00v1","id":1660266,"avatar_url":"https://avatars.githubusercontent.com/u/1660266?v=3","gravatar_id":"","url":"https://api.github.com/users/00v1","html_url":"https://github.com/00v1","followers_url":"https://api.github.com/users/00v1/followers","following_url":"https://api.github.com/users/00v1/following{/other_user}","gists_url":"https://api.github.com/users/00v1/gists{/gist_id}","starred_url":"https://api.github.com/users/00v1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/00v1/subscriptions","organizations_url":"https://api.github.com/users/00v1/orgs","repos_url":"https://api.github.com/users/00v1/repos","events_url":"https://api.github.com/users/00v1/events{/privacy}","received_events_url":"https://api.github.com/users/00v1/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T21:52:58Z","updated_at":"2015-03-25T21:52:58Z","body":"Ok, let me rephrase the problem:\r\n\r\nJQuery does not correctly fire mouseup events when multiple buttons are released off screen.\r\n\r\nExpected workflow:\r\nPress two mouse buttons, move mouse off screen, release two mouse buttons, get two mouseup events\r\n\r\nCurrent workflow:\r\nPress two mouse buttons, move mouse off screen, release two mouse buttons, only get one mouseup event"}}