{"action":"created","issue":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/169","repository_url":"https://api.github.com/repos/greensock/GreenSock-JS","labels_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/169/comments","events_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/169/events","html_url":"https://github.com/greensock/GreenSock-JS/pull/169","id":170404262,"number":169,"title":"Update CSSPlugin.js","user":{"login":"n-a-m-e","id":10303400,"avatar_url":"https://avatars.githubusercontent.com/u/10303400?v=3","gravatar_id":"","url":"https://api.github.com/users/n-a-m-e","html_url":"https://github.com/n-a-m-e","followers_url":"https://api.github.com/users/n-a-m-e/followers","following_url":"https://api.github.com/users/n-a-m-e/following{/other_user}","gists_url":"https://api.github.com/users/n-a-m-e/gists{/gist_id}","starred_url":"https://api.github.com/users/n-a-m-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-a-m-e/subscriptions","organizations_url":"https://api.github.com/users/n-a-m-e/orgs","repos_url":"https://api.github.com/users/n-a-m-e/repos","events_url":"https://api.github.com/users/n-a-m-e/events{/privacy}","received_events_url":"https://api.github.com/users/n-a-m-e/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-10T12:25:32Z","updated_at":"2016-08-11T02:10:20Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/pulls/169","html_url":"https://github.com/greensock/GreenSock-JS/pull/169","diff_url":"https://github.com/greensock/GreenSock-JS/pull/169.diff","patch_url":"https://github.com/greensock/GreenSock-JS/pull/169.patch"},"body":"I found that with all of the svg elements I was animating I had to add the data-svg-origin=\"0 0\" attribute to each one and I thought it would be much nicer to have a toggle option instead of cluttering up the dom.\r\n\r\nBy the way thank you for creating GSAP its by far the best JS library ever."},"comment":{"url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/comments/239057098","html_url":"https://github.com/greensock/GreenSock-JS/pull/169#issuecomment-239057098","issue_url":"https://api.github.com/repos/greensock/GreenSock-JS/issues/169","id":239057098,"user":{"login":"n-a-m-e","id":10303400,"avatar_url":"https://avatars.githubusercontent.com/u/10303400?v=3","gravatar_id":"","url":"https://api.github.com/users/n-a-m-e","html_url":"https://github.com/n-a-m-e","followers_url":"https://api.github.com/users/n-a-m-e/followers","following_url":"https://api.github.com/users/n-a-m-e/following{/other_user}","gists_url":"https://api.github.com/users/n-a-m-e/gists{/gist_id}","starred_url":"https://api.github.com/users/n-a-m-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n-a-m-e/subscriptions","organizations_url":"https://api.github.com/users/n-a-m-e/orgs","repos_url":"https://api.github.com/users/n-a-m-e/repos","events_url":"https://api.github.com/users/n-a-m-e/events{/privacy}","received_events_url":"https://api.github.com/users/n-a-m-e/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T02:10:20Z","updated_at":"2016-08-11T02:10:20Z","body":"Hi Jack, thanks for the reply.\r\nMy problem is that I am using the Draggable plugin and there was no way to use the svgOrigin parameter with it. If you modified two lines in Draggable.js:\r\n\r\nline 1126 add:\r\n`this.svgOrigin = vars.svgOrigin;`\r\n\r\nline 2079 modify:\r\n`TweenLite.set(target, {x:\"+=0\", overwrite:false, svgOrigin:this.svgOrigin});`\r\n\r\nThen you could use:\r\n```\r\nDraggable.create(element, {\r\n    type: \"x,y\",\r\n    svgOrigin:\"0 0\"\r\n});\r\n```\r\n\r\nBut when Draggable.create is called on a nested element the script traverses up the DOM from the selected element till it gets to the root svg element, applying different svg-origins to each one.\r\n\r\nWhich is why I was adding data-svg-origin to every element manually."}}
{"actor":{"display_login":"n-a-m-e"}}