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

Re: document.createTouch

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Fri, 05 Apr 2013 05:42:23 +0800
Message-ID: <515DF3BF.1020104@oupeng.com>
To: Web Events WG <public-webevents@w3.org>
CC: Ms2ger <ms2ger@gmail.com>
(13/04/05 4:57), Ms2ger wrote:
> I'd like to point out that Chrome and Gecko (from code inspection, at
> least) appear to treat all arguments to the document.createTouch method
> as optional. The spec [1] requires an exception to be thrown when those
> arguments are omitted, though.

For this particular function, it also not clear to me what result of the
following should be:

  alert(document.createTouch(window, document,
                             0, 1, 2, 3, 4).clientX);

Firefox on Android gives 0, while Opera Mobile 12 and Chrome 25 give 1.

The very short prose:

  # Creates a Touch object with the specified attributes.

seems to indicate that Touch has a "view" attribute too, but that
doesn't seem to be the case.

Web Specialist, Opera Sphinx Game Force, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Thursday, 4 April 2013 21:42:53 UTC

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