{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/3018","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/3018/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/3018/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/3018/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/3018","id":92756053,"number":3018,"title":"[Finishes #95928060] Drag elements in design mode","user":{"login":"Bjvanminnen","id":1767466,"avatar_url":"https://avatars.githubusercontent.com/u/1767466?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjvanminnen","html_url":"https://github.com/Bjvanminnen","followers_url":"https://api.github.com/users/Bjvanminnen/followers","following_url":"https://api.github.com/users/Bjvanminnen/following{/other_user}","gists_url":"https://api.github.com/users/Bjvanminnen/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjvanminnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjvanminnen/subscriptions","organizations_url":"https://api.github.com/users/Bjvanminnen/orgs","repos_url":"https://api.github.com/users/Bjvanminnen/repos","events_url":"https://api.github.com/users/Bjvanminnen/events{/privacy}","received_events_url":"https://api.github.com/users/Bjvanminnen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T23:23:43Z","updated_at":"2015-07-02T23:31:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/3018","html_url":"https://github.com/code-dot-org/code-dot-org/pull/3018","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/3018.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/3018.patch"},"body":"![dragelements](https://cloud.githubusercontent.com/assets/1767466/8489943/5125c37e-20d6-11e5-84b8-fd3390d1ee31.gif)\r\n\r\nWhen dragging elements in design mode, the object we drag should look like what we're going to drop (rather than the toolbox item). The main challenge here was getting it to look the same when at different scales.\r\n\r\nThe other challenge was making it so that our cursor was in a reasonable place. At first when dragging a radio button the, radio button ended up a bunch to the left of the cursor. The fix was to use cursorAt."},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/118192530","html_url":"https://github.com/code-dot-org/code-dot-org/pull/3018#issuecomment-118192530","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/3018","id":118192530,"user":{"login":"joshlory","id":413693,"avatar_url":"https://avatars.githubusercontent.com/u/413693?v=3","gravatar_id":"","url":"https://api.github.com/users/joshlory","html_url":"https://github.com/joshlory","followers_url":"https://api.github.com/users/joshlory/followers","following_url":"https://api.github.com/users/joshlory/following{/other_user}","gists_url":"https://api.github.com/users/joshlory/gists{/gist_id}","starred_url":"https://api.github.com/users/joshlory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshlory/subscriptions","organizations_url":"https://api.github.com/users/joshlory/orgs","repos_url":"https://api.github.com/users/joshlory/repos","events_url":"https://api.github.com/users/joshlory/events{/privacy}","received_events_url":"https://api.github.com/users/joshlory/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T23:31:02Z","updated_at":"2015-07-02T23:31:02Z","body":"LGTM!"}}