W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2013

Re: Transformed Pointer Coordinates?

From: Doug Schepers <schepers@w3.org>
Date: Tue, 29 Jan 2013 22:52:29 -0500
Message-ID: <510898FD.1000005@w3.org>
To: robert@ocallahan.org
CC: Simon Fraser <smfr@me.com>, public-fx@w3.org, www-style@w3.org
Hi Simon, Rob-

On 1/29/13 10:34 PM, Robert O'Callahan wrote:
> On Wed, Jan 30, 2013 at 7:58 AM, Simon Fraser wrote:
>
>     WebKit has, on DOMWindow,
>
>          WebKitPoint webkitConvertPointFromPageToNode(in Node node, in
>     WebKitPoint p);
>          WebKitPoint webkitConvertPointFromNodeToPage(in Node node,  in
>     WebKitPoint p);
>
>     and
>
>     interface WebKitPoint {
>          attribute float x;
>          attribute float y;
>     };
>
>     for this purpose, which I think is a reasonable approach.
>
>
> A lot of sites use it. We should standardize it, or something very close
> to it.

This is pretty much what I had in mind (and I'm a little embarrassed 
that I didn't know about the WebKit methods).

It's reasonable to make this a general solution, so any suggestions 
where it should go? CSS Transforms spec? CSSOM spec? DOM spec?

Regards-
-Doug
Received on Wednesday, 30 January 2013 03:52:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 03:52:42 GMT