I am attempting to utilize the getScreenCTM
function to retrieve the mouse position based on SVG image coordinates. It seems to work in IE and Firefox, but not in Chrome.
When I define the attributes width
and height
in the SVG element and then adjust them using CSS, it appears that getScreenCTM
always returns the unscaled matrix (based on the original size?).
In summary:
Did I make a mistake somewhere? Or is this a bug specific to Chrome?