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

RE: ISSUE: clientX and clientY coordinates in DOM MouseEvents

From: Curt Arnold <carnold@houston.rr.com>
Date: Sat, 12 Jan 2002 00:47:04 -0600
Message-ID: <001f01c19b34$f25bed40$a800a8c0@CurtMicron>
To: <www-svg@w3.org>
Thierry Kormann wrote (in http://lists.w3.org/Archives/Public/www-svg/2002Jan/0018.html)

>According to the SVG spec, if a mouse event occured on B or C, clientX and
>clientY should be relative to the viewport ([0, 0] [10000, 10000]) and this is
>not what the DOM spec says.

I went back and reread the thread again and caught this.   

The example in my previous message should demonstrate that clientX and clientY are totally oblivious to the value of the viewBox attribute (at least for Adobe SVG Viewer), so clientX and clientY would not in the range ([0,0] to [10000,10000]), but in the device coordinate system of the user agent's window.
Received on Saturday, 12 January 2002 01:50:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:52 UTC