{"action":"opened","number":6167,"pull_request":{"url":"https://api.github.com/repos/atom/atom/pulls/6167","id":32246860,"html_url":"https://github.com/atom/atom/pull/6167","diff_url":"https://github.com/atom/atom/pull/6167.diff","patch_url":"https://github.com/atom/atom/pull/6167.patch","issue_url":"https://api.github.com/repos/atom/atom/issues/6167","number":6167,"state":"open","locked":false,"title":"Fix screenPositionForPixelPosition for case above first row.","user":{"login":"jessegrosjean","id":21868,"avatar_url":"https://avatars.githubusercontent.com/u/21868?v=3","gravatar_id":"","url":"https://api.github.com/users/jessegrosjean","html_url":"https://github.com/jessegrosjean","followers_url":"https://api.github.com/users/jessegrosjean/followers","following_url":"https://api.github.com/users/jessegrosjean/following{/other_user}","gists_url":"https://api.github.com/users/jessegrosjean/gists{/gist_id}","starred_url":"https://api.github.com/users/jessegrosjean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessegrosjean/subscriptions","organizations_url":"https://api.github.com/users/jessegrosjean/orgs","repos_url":"https://api.github.com/users/jessegrosjean/repos","events_url":"https://api.github.com/users/jessegrosjean/events{/privacy}","received_events_url":"https://api.github.com/users/jessegrosjean/received_events","type":"User","site_admin":false},"body":"Currently screenPositionForPixelPosition special cases pixel positions\r\nbelow the last row so that the column position is always set to the\r\nlast column of the last line, even if the pixel 'x' position is less\r\nthen that column.\r\n\r\nThis patch special cases picks above the first row so that the  text\r\ncolumn position will be in the first column even if the pixel 'x'\r\nposition is greater then that column.\r\n\r\nAt a higher level, this patch fixes the problem where you can’t select\r\nto the start of a text field by just clicking and dragging up. Instead\r\nyou have to click and drag back (x axis) beyond the start of the text\r\nfield.","created_at":"2015-03-30T17:10:42Z","updated_at":"2015-03-30T17:10:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa4f1ddf81f41cbcf5db629c8d7141aa42c54d42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom/atom/pulls/6167/commits","review_comments_url":"https://api.github.com/repos/atom/atom/pulls/6167/comments","review_comment_url":"https://api.github.com/repos/atom/atom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/atom/issues/6167/comments","statuses_url":"https://api.github.com/repos/atom/atom/statuses/4a864e79dca09f911bde74a2daf3bf321cdad0b0","head":{"label":"FoldingText:upstream","ref":"upstream","sha":"4a864e79dca09f911bde74a2daf3bf321cdad0b0","user":{"login":"FoldingText","id":2751716,"avatar_url":"https://avatars.githubusercontent.com/u/2751716?v=3","gravatar_id":"","url":"https://api.github.com/users/FoldingText","html_url":"https://github.com/FoldingText","followers_url":"https://api.github.com/users/FoldingText/followers","following_url":"https://api.github.com/users/FoldingText/following{/other_user}","gists_url":"https://api.github.com/users/FoldingText/gists{/gist_id}","starred_url":"https://api.github.com/users/FoldingText/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FoldingText/subscriptions","organizations_url":"https://api.github.com/users/FoldingText/orgs","repos_url":"https://api.github.com/users/FoldingText/repos","events_url":"https://api.github.com/users/FoldingText/events{/privacy}","received_events_url":"https://api.github.com/users/FoldingText/received_events","type":"Organization","site_admin":false},"repo":{"id":29739974,"name":"atom","full_name":"FoldingText/atom","owner":{"login":"FoldingText","id":2751716,"avatar_url":"https://avatars.githubusercontent.com/u/2751716?v=3","gravatar_id":"","url":"https://api.github.com/users/FoldingText","html_url":"https://github.com/FoldingText","followers_url":"https://api.github.com/users/FoldingText/followers","following_url":"https://api.github.com/users/FoldingText/following{/other_user}","gists_url":"https://api.github.com/users/FoldingText/gists{/gist_id}","starred_url":"https://api.github.com/users/FoldingText/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FoldingText/subscriptions","organizations_url":"https://api.github.com/users/FoldingText/orgs","repos_url":"https://api.github.com/users/FoldingText/repos","events_url":"https://api.github.com/users/FoldingText/events{/privacy}","received_events_url":"https://api.github.com/users/FoldingText/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FoldingText/atom","description":"The hackable editor","fork":true,"url":"https://api.github.com/repos/FoldingText/atom","forks_url":"https://api.github.com/repos/FoldingText/atom/forks","keys_url":"https://api.github.com/repos/FoldingText/atom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FoldingText/atom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FoldingText/atom/teams","hooks_url":"https://api.github.com/repos/FoldingText/atom/hooks","issue_events_url":"https://api.github.com/repos/FoldingText/atom/issues/events{/number}","events_url":"https://api.github.com/repos/FoldingText/atom/events","assignees_url":"https://api.github.com/repos/FoldingText/atom/assignees{/user}","branches_url":"https://api.github.com/repos/FoldingText/atom/branches{/branch}","tags_url":"https://api.github.com/repos/FoldingText/atom/tags","blobs_url":"https://api.github.com/repos/FoldingText/atom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FoldingText/atom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FoldingText/atom/git/refs{/sha}","trees_url":"https://api.github.com/repos/FoldingText/atom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FoldingText/atom/statuses/{sha}","languages_url":"https://api.github.com/repos/FoldingText/atom/languages","stargazers_url":"https://api.github.com/repos/FoldingText/atom/stargazers","contributors_url":"https://api.github.com/repos/FoldingText/atom/contributors","subscribers_url":"https://api.github.com/repos/FoldingText/atom/subscribers","subscription_url":"https://api.github.com/repos/FoldingText/atom/subscription","commits_url":"https://api.github.com/repos/FoldingText/atom/commits{/sha}","git_commits_url":"https://api.github.com/repos/FoldingText/atom/git/commits{/sha}","comments_url":"https://api.github.com/repos/FoldingText/atom/comments{/number}","issue_comment_url":"https://api.github.com/repos/FoldingText/atom/issues/comments{/number}","contents_url":"https://api.github.com/repos/FoldingText/atom/contents/{+path}","compare_url":"https://api.github.com/repos/FoldingText/atom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FoldingText/atom/merges","archive_url":"https://api.github.com/repos/FoldingText/atom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FoldingText/atom/downloads","issues_url":"https://api.github.com/repos/FoldingText/atom/issues{/number}","pulls_url":"https://api.github.com/repos/FoldingText/atom/pulls{/number}","milestones_url":"https://api.github.com/repos/FoldingText/atom/milestones{/number}","notifications_url":"https://api.github.com/repos/FoldingText/atom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FoldingText/atom/labels{/name}","releases_url":"https://api.github.com/repos/FoldingText/atom/releases{/id}","created_at":"2015-01-23T15:55:04Z","updated_at":"2015-03-30T17:05:55Z","pushed_at":"2015-03-30T17:09:44Z","git_url":"git://github.com/FoldingText/atom.git","ssh_url":"git@github.com:FoldingText/atom.git","clone_url":"https://github.com/FoldingText/atom.git","svn_url":"https://github.com/FoldingText/atom","homepage":"https://atom.io/","size":262771,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"atom:master","ref":"master","sha":"72dff5b1c10321f7f6cd8554ddb9e11e3e24f0da","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":3228505,"name":"atom","full_name":"atom/atom","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/atom","description":"The hackable editor","fork":false,"url":"https://api.github.com/repos/atom/atom","forks_url":"https://api.github.com/repos/atom/atom/forks","keys_url":"https://api.github.com/repos/atom/atom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/atom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/atom/teams","hooks_url":"https://api.github.com/repos/atom/atom/hooks","issue_events_url":"https://api.github.com/repos/atom/atom/issues/events{/number}","events_url":"https://api.github.com/repos/atom/atom/events","assignees_url":"https://api.github.com/repos/atom/atom/assignees{/user}","branches_url":"https://api.github.com/repos/atom/atom/branches{/branch}","tags_url":"https://api.github.com/repos/atom/atom/tags","blobs_url":"https://api.github.com/repos/atom/atom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/atom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/atom/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/atom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/atom/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/atom/languages","stargazers_url":"https://api.github.com/repos/atom/atom/stargazers","contributors_url":"https://api.github.com/repos/atom/atom/contributors","subscribers_url":"https://api.github.com/repos/atom/atom/subscribers","subscription_url":"https://api.github.com/repos/atom/atom/subscription","commits_url":"https://api.github.com/repos/atom/atom/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/atom/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/atom/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/atom/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/atom/contents/{+path}","compare_url":"https://api.github.com/repos/atom/atom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/atom/merges","archive_url":"https://api.github.com/repos/atom/atom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/atom/downloads","issues_url":"https://api.github.com/repos/atom/atom/issues{/number}","pulls_url":"https://api.github.com/repos/atom/atom/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/atom/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/atom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/atom/labels{/name}","releases_url":"https://api.github.com/repos/atom/atom/releases{/id}","created_at":"2012-01-20T18:18:21Z","updated_at":"2015-03-30T17:03:39Z","pushed_at":"2015-03-30T17:10:43Z","git_url":"git://github.com/atom/atom.git","ssh_url":"git@github.com:atom/atom.git","clone_url":"https://github.com/atom/atom.git","svn_url":"https://github.com/atom/atom","homepage":"https://atom.io","size":349464,"stargazers_count":13751,"watchers_count":13751,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2361,"mirror_url":null,"open_issues_count":1012,"forks":2361,"open_issues":1012,"watchers":13751,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/atom/pulls/6167"},"html":{"href":"https://github.com/atom/atom/pull/6167"},"issue":{"href":"https://api.github.com/repos/atom/atom/issues/6167"},"comments":{"href":"https://api.github.com/repos/atom/atom/issues/6167/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/atom/pulls/6167/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/atom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/atom/pulls/6167/commits"},"statuses":{"href":"https://api.github.com/repos/atom/atom/statuses/4a864e79dca09f911bde74a2daf3bf321cdad0b0"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":0,"changed_files":1}}