W3C home > Mailing lists > Public > www-svg@w3.org > January 2002

mouse event coords

From: Alex Fritze <alex@croczilla.com>
Date: Wed, 9 Jan 2002 11:05:26 -0000
To: "Www-Svg" <www-svg@w3.org>
Message-ID: <ILEKJMELPMKMPCJDLJAAOEHMCHAA.alex@croczilla.com>
Hi,

I have a question about mouse event coordinates in xhtml/svg compound
documents:

The DOM-L-2-Events specs state that client{X,Y} are the coordinates "at
which the event occurred relative to the DOM implementation's client area".
The SVG specs, on the other hand, state that client{X,Y} should represent
"viewport coordinates for the corresponding 'svg' element."
(see
http://www.w3.org/TR/2001/REC-SVG-20010904/svgdom.html#RelationShipWithDOM2E
vents)

I'm wondering how to square these two different requirements in a compound
document like

 ...
 <html:div id="A">
   <svg:svg id="B">
     <svg:circle id="C"/>
     ...
   </svg:svg>
 </html:div>
 ...

Obviously event listeners on "B" & "C" should get client-coords as defined
by the svg specs (i.e. relative to "A").
But what about a capturing event listener on "A"? Should it get mouse events
on "B"/"C" reported with 'normal' client coords or relative to "B" as well?

I'd appreciate any thoughts on this.

Thanks
Alex
Received on Wednesday, 9 January 2002 06:07:44 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:21 GMT