Loading ...
Sorry, an error occurred while loading the content.

Re: changing from mouse event coordinates to SVG-coordinates

Expand Messages
  • Jeff Schiller
    ... I recently had the same problem. I used a JavaScript function written by Holger Will to solve this problem. You can read about it here:
    Message 1 of 3 , Dec 29, 2005
    • 0 Attachment
      --- In svg-developers@yahoogroups.com, "tabergst"
      <thomas.bergstrom@s...> wrote:
      >
      > Hi!
      >
      > I'm using Firefox 1.5 and have not figured out a way to convert mouse
      > event coordinates to SVG-coordinates.
      > The getScreenCTM() which I'm using only returns the transformation
      > matrix between the viewBox and viewPort, which is not useful.
      >
      > In SVG 1.2 spec the definition of the getScreenCTM() is changed so
      > that it should solve this problem, i.e. it returns the matrix between
      > mouse coordinates and the svg coordinates.
      >
      > Any solutions???!!!
      >
      > BR Thomas
      >

      I recently had the same problem. I used a JavaScript function written
      by Holger Will to solve this problem. You can read about it here:
      http://blog.codedread.com/archives/2005/12/21/how-to-enable-dragging-in-svg/
      and look at the SVG file to get the function.
    Your message has been successfully submitted and would be delivered to recipients shortly.