{"action":"created","comment":{"url":"https://api.github.com/repos/atom/tree-view/pulls/comments/35951283","id":35951283,"diff_hunk":"@@ -95,6 +96,16 @@ class TreeView extends View\n \n     @on 'mousedown', '.tree-view-resize-handle', (e) => @resizeStarted(e)\n \n+    @on 'dragstart', '.entry', (e) => @onDragStart(e)\n+\n+    @on 'dragenter', '.entry.directory > .header', (e) => @onDragEnter(e)\n+\n+    @on 'dragleave', '.entry.directory > .header', (e) => @onDragLeave(e)\n+\n+    @on 'dragover', '.entry', (e) => @onDragOver(e)\n+\n+    @on 'drop', '.entry', (e) => @onDrop(e)\n+","path":"lib/tree-view.coffee","position":21,"original_position":21,"commit_id":"c72ada4018deabcdb6dc751a0474d9d901c42d0a","original_commit_id":"c72ada4018deabcdb6dc751a0474d9d901c42d0a","user":{"login":"saschagehlich","id":119684,"avatar_url":"https://avatars.githubusercontent.com/u/119684?v=3","gravatar_id":"","url":"https://api.github.com/users/saschagehlich","html_url":"https://github.com/saschagehlich","followers_url":"https://api.github.com/users/saschagehlich/followers","following_url":"https://api.github.com/users/saschagehlich/following{/other_user}","gists_url":"https://api.github.com/users/saschagehlich/gists{/gist_id}","starred_url":"https://api.github.com/users/saschagehlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saschagehlich/subscriptions","organizations_url":"https://api.github.com/users/saschagehlich/orgs","repos_url":"https://api.github.com/users/saschagehlich/repos","events_url":"https://api.github.com/users/saschagehlich/events{/privacy}","received_events_url":"https://api.github.com/users/saschagehlich/received_events","type":"User","site_admin":false},"body":"Absolutely. I'd also move this to a separate method. I just copied it from the old PR and since nobody mentioned this issue, I just left it as it was.","created_at":"2015-07-31T07:17:24Z","updated_at":"2015-07-31T07:17:24Z","html_url":"https://github.com/atom/tree-view/pull/543#discussion_r35951283","pull_request_url":"https://api.github.com/repos/atom/tree-view/pulls/543","_links":{"self":{"href":"https://api.github.com/repos/atom/tree-view/pulls/comments/35951283"},"html":{"href":"https://github.com/atom/tree-view/pull/543#discussion_r35951283"},"pull_request":{"href":"https://api.github.com/repos/atom/tree-view/pulls/543"}}},"pull_request":{"url":"https://api.github.com/repos/atom/tree-view/pulls/543","id":41284656,"html_url":"https://github.com/atom/tree-view/pull/543","diff_url":"https://github.com/atom/tree-view/pull/543.diff","patch_url":"https://github.com/atom/tree-view/pull/543.patch","issue_url":"https://api.github.com/repos/atom/tree-view/issues/543","number":543,"state":"open","locked":false,"title":"Drag and drop","user":{"login":"saschagehlich","id":119684,"avatar_url":"https://avatars.githubusercontent.com/u/119684?v=3","gravatar_id":"","url":"https://api.github.com/users/saschagehlich","html_url":"https://github.com/saschagehlich","followers_url":"https://api.github.com/users/saschagehlich/followers","following_url":"https://api.github.com/users/saschagehlich/following{/other_user}","gists_url":"https://api.github.com/users/saschagehlich/gists{/gist_id}","starred_url":"https://api.github.com/users/saschagehlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saschagehlich/subscriptions","organizations_url":"https://api.github.com/users/saschagehlich/orgs","repos_url":"https://api.github.com/users/saschagehlich/repos","events_url":"https://api.github.com/users/saschagehlich/events{/privacy}","received_events_url":"https://api.github.com/users/saschagehlich/received_events","type":"User","site_admin":false},"body":"Based on @abm0's PR last month: https://github.com/atom/tree-view/pull/478\r\n\r\n![tree-view](https://cloud.githubusercontent.com/assets/119684/8995667/4bfdf3a0-3713-11e5-9d46-f36e959fb55e.gif)\r\n\r\nChanges I made:\r\n\r\n * Make whole FileView / DirectoryView draggable\r\n * Added specs\r\n * Use `selected` class for hovering","created_at":"2015-07-30T21:32:59Z","updated_at":"2015-07-31T07:17:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"72341e9eaf804b651d6687b139f4d8d8ff6292b6","assignee":{"login":"mnquintana","id":823545,"avatar_url":"https://avatars.githubusercontent.com/u/823545?v=3","gravatar_id":"","url":"https://api.github.com/users/mnquintana","html_url":"https://github.com/mnquintana","followers_url":"https://api.github.com/users/mnquintana/followers","following_url":"https://api.github.com/users/mnquintana/following{/other_user}","gists_url":"https://api.github.com/users/mnquintana/gists{/gist_id}","starred_url":"https://api.github.com/users/mnquintana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnquintana/subscriptions","organizations_url":"https://api.github.com/users/mnquintana/orgs","repos_url":"https://api.github.com/users/mnquintana/repos","events_url":"https://api.github.com/users/mnquintana/events{/privacy}","received_events_url":"https://api.github.com/users/mnquintana/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/atom/tree-view/pulls/543/commits","review_comments_url":"https://api.github.com/repos/atom/tree-view/pulls/543/comments","review_comment_url":"https://api.github.com/repos/atom/tree-view/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/tree-view/issues/543/comments","statuses_url":"https://api.github.com/repos/atom/tree-view/statuses/c72ada4018deabcdb6dc751a0474d9d901c42d0a","head":{"label":"saschagehlich:drag-and-drop","ref":"drag-and-drop","sha":"c72ada4018deabcdb6dc751a0474d9d901c42d0a","user":{"login":"saschagehlich","id":119684,"avatar_url":"https://avatars.githubusercontent.com/u/119684?v=3","gravatar_id":"","url":"https://api.github.com/users/saschagehlich","html_url":"https://github.com/saschagehlich","followers_url":"https://api.github.com/users/saschagehlich/followers","following_url":"https://api.github.com/users/saschagehlich/following{/other_user}","gists_url":"https://api.github.com/users/saschagehlich/gists{/gist_id}","starred_url":"https://api.github.com/users/saschagehlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saschagehlich/subscriptions","organizations_url":"https://api.github.com/users/saschagehlich/orgs","repos_url":"https://api.github.com/users/saschagehlich/repos","events_url":"https://api.github.com/users/saschagehlich/events{/privacy}","received_events_url":"https://api.github.com/users/saschagehlich/received_events","type":"User","site_admin":false},"repo":{"id":19639976,"name":"tree-view","full_name":"saschagehlich/tree-view","owner":{"login":"saschagehlich","id":119684,"avatar_url":"https://avatars.githubusercontent.com/u/119684?v=3","gravatar_id":"","url":"https://api.github.com/users/saschagehlich","html_url":"https://github.com/saschagehlich","followers_url":"https://api.github.com/users/saschagehlich/followers","following_url":"https://api.github.com/users/saschagehlich/following{/other_user}","gists_url":"https://api.github.com/users/saschagehlich/gists{/gist_id}","starred_url":"https://api.github.com/users/saschagehlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saschagehlich/subscriptions","organizations_url":"https://api.github.com/users/saschagehlich/orgs","repos_url":"https://api.github.com/users/saschagehlich/repos","events_url":"https://api.github.com/users/saschagehlich/events{/privacy}","received_events_url":"https://api.github.com/users/saschagehlich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/saschagehlich/tree-view","description":"Explore and open project file in Atom","fork":true,"url":"https://api.github.com/repos/saschagehlich/tree-view","forks_url":"https://api.github.com/repos/saschagehlich/tree-view/forks","keys_url":"https://api.github.com/repos/saschagehlich/tree-view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saschagehlich/tree-view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saschagehlich/tree-view/teams","hooks_url":"https://api.github.com/repos/saschagehlich/tree-view/hooks","issue_events_url":"https://api.github.com/repos/saschagehlich/tree-view/issues/events{/number}","events_url":"https://api.github.com/repos/saschagehlich/tree-view/events","assignees_url":"https://api.github.com/repos/saschagehlich/tree-view/assignees{/user}","branches_url":"https://api.github.com/repos/saschagehlich/tree-view/branches{/branch}","tags_url":"https://api.github.com/repos/saschagehlich/tree-view/tags","blobs_url":"https://api.github.com/repos/saschagehlich/tree-view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saschagehlich/tree-view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saschagehlich/tree-view/git/refs{/sha}","trees_url":"https://api.github.com/repos/saschagehlich/tree-view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saschagehlich/tree-view/statuses/{sha}","languages_url":"https://api.github.com/repos/saschagehlich/tree-view/languages","stargazers_url":"https://api.github.com/repos/saschagehlich/tree-view/stargazers","contributors_url":"https://api.github.com/repos/saschagehlich/tree-view/contributors","subscribers_url":"https://api.github.com/repos/saschagehlich/tree-view/subscribers","subscription_url":"https://api.github.com/repos/saschagehlich/tree-view/subscription","commits_url":"https://api.github.com/repos/saschagehlich/tree-view/commits{/sha}","git_commits_url":"https://api.github.com/repos/saschagehlich/tree-view/git/commits{/sha}","comments_url":"https://api.github.com/repos/saschagehlich/tree-view/comments{/number}","issue_comment_url":"https://api.github.com/repos/saschagehlich/tree-view/issues/comments{/number}","contents_url":"https://api.github.com/repos/saschagehlich/tree-view/contents/{+path}","compare_url":"https://api.github.com/repos/saschagehlich/tree-view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saschagehlich/tree-view/merges","archive_url":"https://api.github.com/repos/saschagehlich/tree-view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saschagehlich/tree-view/downloads","issues_url":"https://api.github.com/repos/saschagehlich/tree-view/issues{/number}","pulls_url":"https://api.github.com/repos/saschagehlich/tree-view/pulls{/number}","milestones_url":"https://api.github.com/repos/saschagehlich/tree-view/milestones{/number}","notifications_url":"https://api.github.com/repos/saschagehlich/tree-view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saschagehlich/tree-view/labels{/name}","releases_url":"https://api.github.com/repos/saschagehlich/tree-view/releases{/id}","created_at":"2014-05-10T11:36:04Z","updated_at":"2015-01-05T16:59:26Z","pushed_at":"2015-07-30T21:36:09Z","git_url":"git://github.com/saschagehlich/tree-view.git","ssh_url":"git@github.com:saschagehlich/tree-view.git","clone_url":"https://github.com/saschagehlich/tree-view.git","svn_url":"https://github.com/saschagehlich/tree-view","homepage":"","size":805,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"75f8482b43caf422966a295fcd70aa7d45b980bd","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":12089001,"name":"tree-view","full_name":"atom/tree-view","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/tree-view","description":"Explore and open project files in Atom","fork":false,"url":"https://api.github.com/repos/atom/tree-view","forks_url":"https://api.github.com/repos/atom/tree-view/forks","keys_url":"https://api.github.com/repos/atom/tree-view/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/tree-view/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/tree-view/teams","hooks_url":"https://api.github.com/repos/atom/tree-view/hooks","issue_events_url":"https://api.github.com/repos/atom/tree-view/issues/events{/number}","events_url":"https://api.github.com/repos/atom/tree-view/events","assignees_url":"https://api.github.com/repos/atom/tree-view/assignees{/user}","branches_url":"https://api.github.com/repos/atom/tree-view/branches{/branch}","tags_url":"https://api.github.com/repos/atom/tree-view/tags","blobs_url":"https://api.github.com/repos/atom/tree-view/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/tree-view/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/tree-view/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/tree-view/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/tree-view/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/tree-view/languages","stargazers_url":"https://api.github.com/repos/atom/tree-view/stargazers","contributors_url":"https://api.github.com/repos/atom/tree-view/contributors","subscribers_url":"https://api.github.com/repos/atom/tree-view/subscribers","subscription_url":"https://api.github.com/repos/atom/tree-view/subscription","commits_url":"https://api.github.com/repos/atom/tree-view/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/tree-view/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/tree-view/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/tree-view/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/tree-view/contents/{+path}","compare_url":"https://api.github.com/repos/atom/tree-view/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/tree-view/merges","archive_url":"https://api.github.com/repos/atom/tree-view/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/tree-view/downloads","issues_url":"https://api.github.com/repos/atom/tree-view/issues{/number}","pulls_url":"https://api.github.com/repos/atom/tree-view/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/tree-view/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/tree-view/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/tree-view/labels{/name}","releases_url":"https://api.github.com/repos/atom/tree-view/releases{/id}","created_at":"2013-08-13T18:17:54Z","updated_at":"2015-07-31T02:29:07Z","pushed_at":"2015-07-30T21:36:09Z","git_url":"git://github.com/atom/tree-view.git","ssh_url":"git@github.com:atom/tree-view.git","clone_url":"https://github.com/atom/tree-view.git","svn_url":"https://github.com/atom/tree-view","homepage":"","size":3593,"stargazers_count":136,"watchers_count":136,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":101,"mirror_url":null,"open_issues_count":145,"forks":101,"open_issues":145,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/tree-view/pulls/543"},"html":{"href":"https://github.com/atom/tree-view/pull/543"},"issue":{"href":"https://api.github.com/repos/atom/tree-view/issues/543"},"comments":{"href":"https://api.github.com/repos/atom/tree-view/issues/543/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/tree-view/pulls/543/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/tree-view/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/tree-view/pulls/543/commits"},"statuses":{"href":"https://api.github.com/repos/atom/tree-view/statuses/c72ada4018deabcdb6dc751a0474d9d901c42d0a"}}}}