W3C home > Mailing lists > Public > www-style@w3.org > February 2013

Re: Transformed Pointer Coordinates?

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 14 Feb 2013 16:40:35 +1300
Message-ID: <CAOp6jLYrfQ2UXHcnVbk_Eu9gxKmMjuKv8f5R40648WTPHWx4Ow@mail.gmail.com>
To: Hans Muller <hmuller@adobe.com>
Cc: Jacob Rossi <Jacob.Rossi@microsoft.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Simon Fraser <smfr@me.com>, Doug Schepers <schepers@w3.org>, "public-pointer-events@w3.org" <public-pointer-events@w3.org>, "public-fx@w3.org" <public-fx@w3.org>, www-style list <www-style@w3.org>
We could add an optional enum parameter to specify which CSS box(es) to use
--- e.g. "border", "padding", "content", defaulting to "border". This would
be ignored on non-element sources and destinations. Converting event
coordinates to canvas coordinates would then be as simple as
  var pt = convertPointFromNode(document, {x:event.clientX,
y:event.clientY}, "content");

Rob
-- 
Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur
Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr nhgubevgl
bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr terng nzbat
lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg zhfg or lbhe fynir
— whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq, ohg gb freir, naq gb
tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj 20:25-28]
Received on Thursday, 14 February 2013 03:41:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:05 GMT