{"action":"closed","issue":{"url":"https://api.github.com/repos/gaearon/react-dnd/issues/117","labels_url":"https://api.github.com/repos/gaearon/react-dnd/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/gaearon/react-dnd/issues/117/comments","events_url":"https://api.github.com/repos/gaearon/react-dnd/issues/117/events","html_url":"https://github.com/gaearon/react-dnd/issues/117","id":61167710,"number":117,"title":"DragLayerMixin: exposes initialOffsetFromContainer","user":{"login":"gre","id":211411,"avatar_url":"https://avatars.githubusercontent.com/u/211411?v=3","gravatar_id":"","url":"https://api.github.com/users/gre","html_url":"https://github.com/gre","followers_url":"https://api.github.com/users/gre/followers","following_url":"https://api.github.com/users/gre/following{/other_user}","gists_url":"https://api.github.com/users/gre/gists{/gist_id}","starred_url":"https://api.github.com/users/gre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gre/subscriptions","organizations_url":"https://api.github.com/users/gre/orgs","repos_url":"https://api.github.com/users/gre/repos","events_url":"https://api.github.com/users/gre/events{/privacy}","received_events_url":"https://api.github.com/users/gre/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-13T18:12:46Z","updated_at":"2015-03-14T16:50:10Z","closed_at":"2015-03-14T16:50:10Z","body":"The current `DragLayerMixin` seems to be only designed to implement drag layer that have the exact same size (width, height) than the initial draggable element.\r\n\r\nWhen you want to have small size for instance, the result will be weird because that layer will be offset (using `getDragLayerState().currentOffset`),\r\nin such case you usually don't want to start from the corner top-left of the initial element but to be center with the cursor for instance. To perform such need, `getDragLayerState()` needs to exposes `initialOffsetFromContainer`, otherwise AFAIK we can't compute the centered position.\r\n\r\n**If possible, I would even prefer that the \"mouse position\" would be exposed. Do you know if this is possible?**\r\n\r\nBest Regards,\r\ngre"}}