{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/designer/pulls/comments/31670876","id":31670876,"diff_hunk":"@@ -96,31 +97,54 @@\n \n     _onMouseDown: function(e) {\n       let el = e.target;\n+      // find the palette item by crawling up until we see a .element\n       while (!el.classList.contains('element')) {\n         el = el.parentNode;\n       }\n       let proxy = dragging.createDragProxy(el, true);\n       this.$.proxy.innerHTML = proxy.outerHTML;\n       let bounds = el.getBoundingClientRect();\n+      this._updateDragProxy({\n+        left: bounds.left,\n+        top: bounds.top,\n+        width: el.offsetWidth,\n+        height: el.offsetHeight,\n+      });\n+      this.fire('designer-mini-nav-collapse');","path":"elements/designer-element-palette/designer-element-palette.html","position":58,"original_position":58,"commit_id":"cbaa09b753f4d89dff6a694cb756d7e16c39c828","original_commit_id":"f205566dfe06a6b77c7a7a8d2b9dab20085cb71a","user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"body":"yes","created_at":"2015-06-03T21:15:13Z","updated_at":"2015-06-03T21:15:13Z","html_url":"https://github.com/Polymer/designer/pull/142#discussion_r31670876","pull_request_url":"https://api.github.com/repos/Polymer/designer/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/Polymer/designer/pulls/comments/31670876"},"html":{"href":"https://github.com/Polymer/designer/pull/142#discussion_r31670876"},"pull_request":{"href":"https://api.github.com/repos/Polymer/designer/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/designer/pulls/142","id":36785621,"html_url":"https://github.com/Polymer/designer/pull/142","diff_url":"https://github.com/Polymer/designer/pull/142.diff","patch_url":"https://github.com/Polymer/designer/pull/142.patch","issue_url":"https://api.github.com/repos/Polymer/designer/issues/142","number":142,"state":"open","locked":false,"title":"Start work on drag events.","user":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"body":"Implementing custom drag events so that we can have fine-grained\r\ncontrol over drag proxies and having drop targets in an iframe.","created_at":"2015-06-02T23:33:51Z","updated_at":"2015-06-03T21:15:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8b32c0f379bcb4b2b5cbd731a27ce29b3b0aaef","assignee":{"login":"cdata","id":240083,"avatar_url":"https://avatars.githubusercontent.com/u/240083?v=3","gravatar_id":"","url":"https://api.github.com/users/cdata","html_url":"https://github.com/cdata","followers_url":"https://api.github.com/users/cdata/followers","following_url":"https://api.github.com/users/cdata/following{/other_user}","gists_url":"https://api.github.com/users/cdata/gists{/gist_id}","starred_url":"https://api.github.com/users/cdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdata/subscriptions","organizations_url":"https://api.github.com/users/cdata/orgs","repos_url":"https://api.github.com/users/cdata/repos","events_url":"https://api.github.com/users/cdata/events{/privacy}","received_events_url":"https://api.github.com/users/cdata/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/designer/pulls/142/commits","review_comments_url":"https://api.github.com/repos/Polymer/designer/pulls/142/comments","review_comment_url":"https://api.github.com/repos/Polymer/designer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/designer/issues/142/comments","statuses_url":"https://api.github.com/repos/Polymer/designer/statuses/cbaa09b753f4d89dff6a694cb756d7e16c39c828","head":{"label":"Polymer:dragging","ref":"dragging","sha":"cbaa09b753f4d89dff6a694cb756d7e16c39c828","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":14120695,"name":"designer","full_name":"Polymer/designer","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/designer","description":"Polymer Designer Tool","fork":false,"url":"https://api.github.com/repos/Polymer/designer","forks_url":"https://api.github.com/repos/Polymer/designer/forks","keys_url":"https://api.github.com/repos/Polymer/designer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/designer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/designer/teams","hooks_url":"https://api.github.com/repos/Polymer/designer/hooks","issue_events_url":"https://api.github.com/repos/Polymer/designer/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/designer/events","assignees_url":"https://api.github.com/repos/Polymer/designer/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/designer/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/designer/tags","blobs_url":"https://api.github.com/repos/Polymer/designer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/designer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/designer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/designer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/designer/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/designer/languages","stargazers_url":"https://api.github.com/repos/Polymer/designer/stargazers","contributors_url":"https://api.github.com/repos/Polymer/designer/contributors","subscribers_url":"https://api.github.com/repos/Polymer/designer/subscribers","subscription_url":"https://api.github.com/repos/Polymer/designer/subscription","commits_url":"https://api.github.com/repos/Polymer/designer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/designer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/designer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/designer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/designer/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/designer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/designer/merges","archive_url":"https://api.github.com/repos/Polymer/designer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/designer/downloads","issues_url":"https://api.github.com/repos/Polymer/designer/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/designer/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/designer/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/designer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/designer/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/designer/releases{/id}","created_at":"2013-11-04T19:08:31Z","updated_at":"2015-06-03T19:34:48Z","pushed_at":"2015-06-03T20:53:42Z","git_url":"git://github.com/Polymer/designer.git","ssh_url":"git@github.com:Polymer/designer.git","clone_url":"https://github.com/Polymer/designer.git","svn_url":"https://github.com/Polymer/designer","homepage":"https://www.polymer-project.org/tools/designer/","size":2762,"stargazers_count":495,"watchers_count":495,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"open_issues_count":5,"forks":215,"open_issues":5,"watchers":495,"default_branch":"master"}},"base":{"label":"Polymer:master","ref":"master","sha":"2d12fde8e230fcdae6d2d28b92e5d48d5a906742","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":14120695,"name":"designer","full_name":"Polymer/designer","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/designer","description":"Polymer Designer Tool","fork":false,"url":"https://api.github.com/repos/Polymer/designer","forks_url":"https://api.github.com/repos/Polymer/designer/forks","keys_url":"https://api.github.com/repos/Polymer/designer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/designer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/designer/teams","hooks_url":"https://api.github.com/repos/Polymer/designer/hooks","issue_events_url":"https://api.github.com/repos/Polymer/designer/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/designer/events","assignees_url":"https://api.github.com/repos/Polymer/designer/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/designer/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/designer/tags","blobs_url":"https://api.github.com/repos/Polymer/designer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/designer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/designer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/designer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/designer/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/designer/languages","stargazers_url":"https://api.github.com/repos/Polymer/designer/stargazers","contributors_url":"https://api.github.com/repos/Polymer/designer/contributors","subscribers_url":"https://api.github.com/repos/Polymer/designer/subscribers","subscription_url":"https://api.github.com/repos/Polymer/designer/subscription","commits_url":"https://api.github.com/repos/Polymer/designer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/designer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/designer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/designer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/designer/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/designer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/designer/merges","archive_url":"https://api.github.com/repos/Polymer/designer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/designer/downloads","issues_url":"https://api.github.com/repos/Polymer/designer/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/designer/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/designer/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/designer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/designer/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/designer/releases{/id}","created_at":"2013-11-04T19:08:31Z","updated_at":"2015-06-03T19:34:48Z","pushed_at":"2015-06-03T20:53:42Z","git_url":"git://github.com/Polymer/designer.git","ssh_url":"git@github.com:Polymer/designer.git","clone_url":"https://github.com/Polymer/designer.git","svn_url":"https://github.com/Polymer/designer","homepage":"https://www.polymer-project.org/tools/designer/","size":2762,"stargazers_count":495,"watchers_count":495,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":215,"mirror_url":null,"open_issues_count":5,"forks":215,"open_issues":5,"watchers":495,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/designer/pulls/142"},"html":{"href":"https://github.com/Polymer/designer/pull/142"},"issue":{"href":"https://api.github.com/repos/Polymer/designer/issues/142"},"comments":{"href":"https://api.github.com/repos/Polymer/designer/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/designer/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/designer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/designer/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/designer/statuses/cbaa09b753f4d89dff6a694cb756d7e16c39c828"}}}}