{"action":"closed","issue":{"url":"https://api.github.com/repos/codecapers/AngularJS-FlowChart/issues/18","labels_url":"https://api.github.com/repos/codecapers/AngularJS-FlowChart/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/codecapers/AngularJS-FlowChart/issues/18/comments","events_url":"https://api.github.com/repos/codecapers/AngularJS-FlowChart/issues/18/events","html_url":"https://github.com/codecapers/AngularJS-FlowChart/issues/18","id":107911812,"number":18,"title":"Dragging nodes in IE10","user":{"login":"claud1nho","id":14804587,"avatar_url":"https://avatars.githubusercontent.com/u/14804587?v=3","gravatar_id":"","url":"https://api.github.com/users/claud1nho","html_url":"https://github.com/claud1nho","followers_url":"https://api.github.com/users/claud1nho/followers","following_url":"https://api.github.com/users/claud1nho/following{/other_user}","gists_url":"https://api.github.com/users/claud1nho/gists{/gist_id}","starred_url":"https://api.github.com/users/claud1nho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claud1nho/subscriptions","organizations_url":"https://api.github.com/users/claud1nho/orgs","repos_url":"https://api.github.com/users/claud1nho/repos","events_url":"https://api.github.com/users/claud1nho/events{/privacy}","received_events_url":"https://api.github.com/users/claud1nho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-23T12:49:06Z","updated_at":"2015-09-24T02:36:22Z","closed_at":"2015-09-24T02:36:22Z","body":"Hi, \r\n\r\nwhen dragging nodes with the mouse in IE10 I get the Error\r\nSVG4601: SVG Path data has incorrect format and could not be completely parsed\r\n\r\nThe problem and its solution is described here https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY.\r\n\r\nSo function 'translateCoordinates' in flowchart_directive.js should look like this:\r\n\r\n    this.translateCoordinates = function(x, y, evt) {\r\n\t\tvar svg_elem =  $element.get(0);\r\n\t\tvar matrix = svg_elem.getScreenCTM();\r\n\t\tvar point = svg_elem.createSVGPoint();\r\n\t\t//point.x = x - evt.view.scrollX;\r\n\t\t//point.y = y - evt.view.scrollY;\r\n\t\tpoint.x = x - evt.view.pageXOffset;\r\n\t\tpoint.y = y - evt.view.pageYOffset;\r\n\t\treturn point.matrixTransform(matrix.inverse());\r\n\t};"}}