W3C home > Mailing lists > Public > www-svg@w3.org > October 2007

Pointer Events in SVG

From: Daniel Herzog <daniel.herzog@gmail.com>
Date: Wed, 24 Oct 2007 17:15:57 +0200
Message-ID: <3cb916bd0710240815h2def3a39hc409439b13e48bd2@mail.gmail.com>
To: public-cdf@w3.org, www-svg@w3.org

just to quickly introduce myself, I work at Vodafone and contributed to the
WICD Testsuite.

I would like to know, is there a way to get the pointer-position in
reference to an SVGs coordinate-system? Please take a look at the following
testfile (with Opera 9.23, Firefox2, Safari3):

The blue rect is part of an SVG that has a viewBox of only 20 x 6, but the
whole thing is in a container much bigger and is therefore scaled up. When
hovering the SVG you see some properties of mouse-events below it, but none
of them quite fit
the SVGs coordinate system. The maximum x-values for that would be 20 then.
I think it would be important to have an easy way for getting to these values,
just thinking of a simple mousefollow, or slider controls, for example.

Thanks a lot,
Received on Wednesday, 24 October 2007 21:40:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:17 UTC