{"action":"created","issue":{"url":"https://api.github.com/repos/desandro/draggabilly/issues/153","repository_url":"https://api.github.com/repos/desandro/draggabilly","labels_url":"https://api.github.com/repos/desandro/draggabilly/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/desandro/draggabilly/issues/153/comments","events_url":"https://api.github.com/repos/desandro/draggabilly/issues/153/events","html_url":"https://github.com/desandro/draggabilly/issues/153","id":212156006,"number":153,"title":"Wrong position when using transform on an element","user":{"login":"snapeuh","id":4946717,"avatar_url":"https://avatars0.githubusercontent.com/u/4946717?v=3","gravatar_id":"","url":"https://api.github.com/users/snapeuh","html_url":"https://github.com/snapeuh","followers_url":"https://api.github.com/users/snapeuh/followers","following_url":"https://api.github.com/users/snapeuh/following{/other_user}","gists_url":"https://api.github.com/users/snapeuh/gists{/gist_id}","starred_url":"https://api.github.com/users/snapeuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snapeuh/subscriptions","organizations_url":"https://api.github.com/users/snapeuh/orgs","repos_url":"https://api.github.com/users/snapeuh/repos","events_url":"https://api.github.com/users/snapeuh/events{/privacy}","received_events_url":"https://api.github.com/users/snapeuh/received_events","type":"User","site_admin":false},"labels":[{"id":26119036,"url":"https://api.github.com/repos/desandro/draggabilly/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-06T15:27:40Z","updated_at":"2017-03-23T11:07:04Z","closed_at":null,"body":"Hello,\r\n\r\nI encountered a problem today with Draggabilly. I have a element that I want to drag with the following CSS : \r\n\r\n```\r\nposition: absolute;\r\ntop: 50%;\r\nleft: 50%;\r\ntransform: translate(-50%, -50%);\r\n```\r\n\r\nThe element, as you can see, is centered on its parent. When dragging it, the end position is not calculated to compensate the transformation. The position is always at the top left of the mouse cursor at half the element width/height distance.\r\n\r\nSeems like a bug to me.\r\n\r\nThanks for your work on Draggabilly & have a nice day,\r\n\r\nRegards,\r\n\r\nRomain."},"comment":{"url":"https://api.github.com/repos/desandro/draggabilly/issues/comments/288686006","html_url":"https://github.com/desandro/draggabilly/issues/153#issuecomment-288686006","issue_url":"https://api.github.com/repos/desandro/draggabilly/issues/153","id":288686006,"user":{"login":"gigablox","id":2176507,"avatar_url":"https://avatars2.githubusercontent.com/u/2176507?v=3","gravatar_id":"","url":"https://api.github.com/users/gigablox","html_url":"https://github.com/gigablox","followers_url":"https://api.github.com/users/gigablox/followers","following_url":"https://api.github.com/users/gigablox/following{/other_user}","gists_url":"https://api.github.com/users/gigablox/gists{/gist_id}","starred_url":"https://api.github.com/users/gigablox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gigablox/subscriptions","organizations_url":"https://api.github.com/users/gigablox/orgs","repos_url":"https://api.github.com/users/gigablox/repos","events_url":"https://api.github.com/users/gigablox/events{/privacy}","received_events_url":"https://api.github.com/users/gigablox/received_events","type":"User","site_admin":false},"created_at":"2017-03-23T11:07:04Z","updated_at":"2017-03-23T11:07:04Z","body":"Just ran into this today. The parent element zTranslate is being transformed, using child draggable elements either with percentages or fixed pixel measurements causes some weird ending positions."}}
{"actor":{"display_login":"gigablox"}}