W3C home > Mailing lists > Public > public-webevents@w3.org > April to June 2011

Re: WebEvents-ISSUE-14: Specify createTouch and createTouchList

From: Matt Brubeck <mbrubeck@mozilla.com>
Date: Thu, 28 Apr 2011 11:09:11 -0700
Message-ID: <4DB9AD47.8040407@mozilla.com>
To: Web Events Working Group WG <public-webevents@w3.org>
I pushed a proposal for a new interface (DocumentTouch) to be 
implemented by the Document element, containing createTouch and 
createTouchList methods:


I have one open question I'd like to raise:  In WebKit, createTouch 
takes pageX/pageY as arguments and computes clientX/clientY.  This is 
inconsistent with other DOM methods like initMouseEvent, which takes 
clientX/clientY as arguments and computes pageX/pageY.

The spec now includes both pairs as parameters, but makes client* 
optional.  Thus it is compatible with content that uses the WebKit 
interface, and with Gecko nightly builds (which include both pairs of 
parameters).  Should we keep the spec as it is, or should we drop one 
pair or the other?
Received on Thursday, 28 April 2011 18:09:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:53 UTC