{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/50841705","id":50841705,"diff_hunk":"@@ -260,9 +488,135 @@\n         }\n         break;\n \n+      // Disable scrolling during dragging, and display bottom-bar\n+      case 'drag-start':\n+        console.debug('Drag-start on ' + e.detail.target.dataset.id);\n+        this.dragging = true;\n+        this.shouldEnterEditMode = true;\n+        document.body.classList.add('dragging');\n+        this.scrollable.style.overflow = 'hidden';\n+        this.draggedIndex = this.getChildIndex(e.detail.target);\n+        break;\n+\n+      case 'drag-finish':\n+        console.debug('Drag-finish');\n+        this.dragging = false;\n+        document.body.classList.remove('dragging');\n+        document.body.classList.remove('autoscroll');\n+        this.scrollable.style.overflow = '';\n+\n+        if (this.autoScrollInterval !== null) {\n+          clearInterval(this.autoScrollInterval);\n+          this.autoScrollInterval = null;\n+        }\n+\n+        if (this.autoScrollOverflowTimeout !== null) {\n+          clearTimeout(this.autoScrollOverflowTimeout);\n+          this.autoScrollOverflowTimeout = null;\n+        }\n+\n+        if (this.hoverIcon) {\n+          this.hoverIcon.classList.remove('hover-before', 'hover-after');\n+          this.hoverIcon = null;\n+        }\n+\n+        // Restore normal drag-and-drop after dragging selected icons\n+        this.pages.dragAndDropTimeout = -1;\n+        break;\n+\n+      // Handle app/site editing and dragging to the end of the icon grid.\n+      case 'drag-end':\n+        console.debug('Drag-end, target: ' + (e.detail.dropTarget ?","path":"apps/homescreen/js/pages.js","position":479,"original_position":479,"commit_id":"74039dece75bfda64d02c824588fd87df89ca16e","original_commit_id":"74039dece75bfda64d02c824588fd87df89ca16e","user":{"login":"Cwiiis","id":668518,"avatar_url":"https://avatars.githubusercontent.com/u/668518?v=3","gravatar_id":"","url":"https://api.github.com/users/Cwiiis","html_url":"https://github.com/Cwiiis","followers_url":"https://api.github.com/users/Cwiiis/followers","following_url":"https://api.github.com/users/Cwiiis/following{/other_user}","gists_url":"https://api.github.com/users/Cwiiis/gists{/gist_id}","starred_url":"https://api.github.com/users/Cwiiis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cwiiis/subscriptions","organizations_url":"https://api.github.com/users/Cwiiis/orgs","repos_url":"https://api.github.com/users/Cwiiis/repos","events_url":"https://api.github.com/users/Cwiiis/events{/privacy}","received_events_url":"https://api.github.com/users/Cwiiis/received_events","type":"User","site_admin":false},"body":"and here","created_at":"2016-01-26T14:36:45Z","updated_at":"2016-01-26T14:36:45Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/33921#discussion_r50841705","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/50841705"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/33921#discussion_r50841705"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921","id":56602369,"html_url":"https://github.com/mozilla-b2g/gaia/pull/33921","diff_url":"https://github.com/mozilla-b2g/gaia/pull/33921.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/33921.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33921","number":33921,"state":"open","locked":false,"title":"Bug 1222069 - [User Story] Re-arrange Pinned Pages","user":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-20T12:39:15Z","updated_at":"2016-01-26T14:36:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3dfdd785f9cb6b482fdd8888939f6a3ee39f74d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33921/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/74039dece75bfda64d02c824588fd87df89ca16e","head":{"label":"gmarty:Bug-1222069-Re-arrange-Pinned-Pages","ref":"Bug-1222069-Re-arrange-Pinned-Pages","sha":"74039dece75bfda64d02c824588fd87df89ca16e","user":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"repo":{"id":18517462,"name":"gaia","full_name":"gmarty/gaia","owner":{"login":"gmarty","id":333865,"avatar_url":"https://avatars.githubusercontent.com/u/333865?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarty","html_url":"https://github.com/gmarty","followers_url":"https://api.github.com/users/gmarty/followers","following_url":"https://api.github.com/users/gmarty/following{/other_user}","gists_url":"https://api.github.com/users/gmarty/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarty/subscriptions","organizations_url":"https://api.github.com/users/gmarty/orgs","repos_url":"https://api.github.com/users/gmarty/repos","events_url":"https://api.github.com/users/gmarty/events{/privacy}","received_events_url":"https://api.github.com/users/gmarty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gmarty/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see https://wiki.mozilla.org/Release_Management/B2G_Landing","fork":true,"url":"https://api.github.com/repos/gmarty/gaia","forks_url":"https://api.github.com/repos/gmarty/gaia/forks","keys_url":"https://api.github.com/repos/gmarty/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gmarty/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gmarty/gaia/teams","hooks_url":"https://api.github.com/repos/gmarty/gaia/hooks","issue_events_url":"https://api.github.com/repos/gmarty/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/gmarty/gaia/events","assignees_url":"https://api.github.com/repos/gmarty/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/gmarty/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/gmarty/gaia/tags","blobs_url":"https://api.github.com/repos/gmarty/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gmarty/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gmarty/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/gmarty/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gmarty/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/gmarty/gaia/languages","stargazers_url":"https://api.github.com/repos/gmarty/gaia/stargazers","contributors_url":"https://api.github.com/repos/gmarty/gaia/contributors","subscribers_url":"https://api.github.com/repos/gmarty/gaia/subscribers","subscription_url":"https://api.github.com/repos/gmarty/gaia/subscription","commits_url":"https://api.github.com/repos/gmarty/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/gmarty/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/gmarty/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/gmarty/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/gmarty/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/gmarty/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gmarty/gaia/merges","archive_url":"https://api.github.com/repos/gmarty/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gmarty/gaia/downloads","issues_url":"https://api.github.com/repos/gmarty/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/gmarty/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/gmarty/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/gmarty/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gmarty/gaia/labels{/name}","releases_url":"https://api.github.com/repos/gmarty/gaia/releases{/id}","deployments_url":"https://api.github.com/repos/gmarty/gaia/deployments","created_at":"2014-04-07T13:15:45Z","updated_at":"2015-04-30T10:34:36Z","pushed_at":"2016-01-25T12:10:34Z","git_url":"git://github.com/gmarty/gaia.git","ssh_url":"git@github.com:gmarty/gaia.git","clone_url":"https://github.com/gmarty/gaia.git","svn_url":"https://github.com/gmarty/gaia","homepage":"https://wiki.mozilla.org/B2G","size":992344,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mozilla-b2g:master","ref":"master","sha":"8f3065e7a8141864a217904543a30c818debd562","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla-b2g/gaia/deployments","created_at":"2011-09-03T01:38:46Z","updated_at":"2016-01-26T00:25:08Z","pushed_at":"2016-01-26T14:11:24Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1197409,"stargazers_count":2028,"watchers_count":2028,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2571,"mirror_url":null,"open_issues_count":1311,"forks":2571,"open_issues":1311,"watchers":2028,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/33921"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33921"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/33921/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/33921/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/74039dece75bfda64d02c824588fd87df89ca16e"}}}}