{"action":"created","issue":{"url":"https://api.github.com/repos/taye/interact.js/issues/79","labels_url":"https://api.github.com/repos/taye/interact.js/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/taye/interact.js/issues/79/comments","events_url":"https://api.github.com/repos/taye/interact.js/issues/79/events","html_url":"https://github.com/taye/interact.js/issues/79","id":43339131,"number":79,"title":"Snap to dropzone?","user":{"login":"eminos","id":1682784,"avatar_url":"https://avatars.githubusercontent.com/u/1682784?v=3","gravatar_id":"","url":"https://api.github.com/users/eminos","html_url":"https://github.com/eminos","followers_url":"https://api.github.com/users/eminos/followers","following_url":"https://api.github.com/users/eminos/following{/other_user}","gists_url":"https://api.github.com/users/eminos/gists{/gist_id}","starred_url":"https://api.github.com/users/eminos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eminos/subscriptions","organizations_url":"https://api.github.com/users/eminos/orgs","repos_url":"https://api.github.com/users/eminos/repos","events_url":"https://api.github.com/users/eminos/events{/privacy}","received_events_url":"https://api.github.com/users/eminos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":30,"created_at":"2014-09-21T16:33:17Z","updated_at":"2016-01-15T05:22:03Z","closed_at":"2014-10-11T14:15:18Z","body":"Hello,\r\n\r\nI'm sorry this is not a bug, just a question. I'm not sure where to ask this...\r\n\r\nI'm building a little \"product builder tool\" for a client, using interact.js. I just started testing it, hoping I can have all the functions I need with it.\r\n\r\nI have a bunch of dropzones, letting dragable boxes be able to be dropped on these dropzones. The boxes should be snapped/centered (with animation) when dropped onto the dropzone.\r\nAnd also the \"element origin\" should be centered to the dragable box, so that the dropzone gets active once the center of the dragable box is on the drop zone, and not the cursor (as now).\r\n\r\nAre these two things possible to achieve with intereact.js?\r\n\r\nHave a look here to see what I'm trying to do:\r\nhttp://kundprojekt.soonce.com/lintex/zonbuilder/"},"comment":{"url":"https://api.github.com/repos/taye/interact.js/issues/comments/171874432","html_url":"https://github.com/taye/interact.js/issues/79#issuecomment-171874432","issue_url":"https://api.github.com/repos/taye/interact.js/issues/79","id":171874432,"user":{"login":"zdnet","id":1091809,"avatar_url":"https://avatars.githubusercontent.com/u/1091809?v=3","gravatar_id":"","url":"https://api.github.com/users/zdnet","html_url":"https://github.com/zdnet","followers_url":"https://api.github.com/users/zdnet/followers","following_url":"https://api.github.com/users/zdnet/following{/other_user}","gists_url":"https://api.github.com/users/zdnet/gists{/gist_id}","starred_url":"https://api.github.com/users/zdnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdnet/subscriptions","organizations_url":"https://api.github.com/users/zdnet/orgs","repos_url":"https://api.github.com/users/zdnet/repos","events_url":"https://api.github.com/users/zdnet/events{/privacy}","received_events_url":"https://api.github.com/users/zdnet/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T05:22:02Z","updated_at":"2016-01-15T05:22:02Z","body":"@loverdrive \r\nin dropzone, you should use \"relatedTarget\" as below code:\r\nstartPos = {\r\n                x: event.relatedTarget.getAttribute('data-start-x'),\r\n                y: event.relatedTarget.getAttribute('data-start-y'),\r\n            }\r\n"}}