{"action":"opened","issue":{"url":"https://api.github.com/repos/huei90/snap.svg.zpd/issues/66","repository_url":"https://api.github.com/repos/huei90/snap.svg.zpd","labels_url":"https://api.github.com/repos/huei90/snap.svg.zpd/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/huei90/snap.svg.zpd/issues/66/comments","events_url":"https://api.github.com/repos/huei90/snap.svg.zpd/issues/66/events","html_url":"https://github.com/huei90/snap.svg.zpd/issues/66","id":169377371,"number":66,"title":" bower install snap.svg.zpd --save installs old version","user":{"login":"toolchild","id":10668933,"avatar_url":"https://avatars.githubusercontent.com/u/10668933?v=3","gravatar_id":"","url":"https://api.github.com/users/toolchild","html_url":"https://github.com/toolchild","followers_url":"https://api.github.com/users/toolchild/followers","following_url":"https://api.github.com/users/toolchild/following{/other_user}","gists_url":"https://api.github.com/users/toolchild/gists{/gist_id}","starred_url":"https://api.github.com/users/toolchild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolchild/subscriptions","organizations_url":"https://api.github.com/users/toolchild/orgs","repos_url":"https://api.github.com/users/toolchild/repos","events_url":"https://api.github.com/users/toolchild/events{/privacy}","received_events_url":"https://api.github.com/users/toolchild/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-04T13:42:54Z","updated_at":"2016-08-04T13:42:54Z","closed_at":null,"body":"Hi,\r\n\r\nwhen i use  `bower install snap.svg.zpd --save` to install this plugin I get code still using `obj.offsetParent` to figure out the point where the mouseevent occured for zooming.\r\n\r\n```\r\n var _findPos = function findPos(obj) {\r\n           var curleft = curtop = 0;\r\n           if (obj.offsetParent) {\r\n               do {\r\n                   curleft += obj.offsetLeft;\r\n                   curtop += obj.offsetTop;\r\n               } while(obj = obj.offsetParent);\r\n           }\r\n           return [curleft,curtop];\r\n        };\r\n```\r\n\r\nThis does return undefined in my usecase and therefore zooming is calculated to absolute coordinates and not to relative element coordinates.\r\n\r\nI have never used bower before, so this might be expected behavior. If it is, what must i do to get the version here on github via console using bower?"}}
{"actor":{"display_login":"toolchild"}}