SVG coordinates with transform matrix
I have created a working example of what I believe you are describing on my site here: http://phrogz.net/svg/drag_under_transformation.xhtml In general, you convert the mouse cursor into the local space of an object by: Creating a mousemove event handler: var svg = document.getElementsByTagName(‘svg’)[0]; document.documentElement.addEventListener(‘mousemove’,function(evt){ … },false); In that event handler, convert the mouse coordinates (in pixels) … Read more