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

Re: Last Call comments

From: Konstantinov Sergey <twirl@yandex-team.ru>
Date: Mon, 08 Apr 2013 19:06:13 +0400
To: Rick Byers <rbyers@google.com>
Cc: "public-pointer-events@w3.org" <public-pointer-events@w3.org>
Message-Id: <14461365433573@webcorp2e.yandex-team.ru>
08.04.2013, 18:14, "Rick Byers" <rbyers@google.com>:
> Can you elaborate on how this is 'unusable' without gestures? šI expect consumers to continue to implement gestures in javascript as they have been already for Chrome (eg. hammer.js and other popular libraries). šThey seem separate to me, but since no browser has yet shipped with pointer events and without gesture events, this is certainly an area of risk we should watch out for. šOtherwise I take a lot of comfort in the experience that has been gained programming to pointer events in IE10 (eg. I've talked with the Google maps team about their experience - which was generally positive).

Okay, look at the hammer.js pointer code: https://github.com/EightMedia/hammer.js/blob/master/src/pointerevent.js
55 lines of code are just redundant and is used to handle the simpliest things: the number of touches and the positions of touches. And this code will be completely broken if some other script on the page uses the capturing.
We are forcing EVERY web-developer to write such code; we (Yandex Maps API team) wrote such code too - just because such simple things are "out of scope" and "we will provide helpers in v2". Meanwhile every single js framework will be forced to write that code.

It's very easy to test the simplicity of the pointerEvents proposal: to count the lines of code.
Our TouchEvent engine is 107 lines long; our PointerEvent one - 243 (+ 60 lines of pointer counter mentioned above).

-- 
Konstantinov Sergey
Yandex Maps API Development Team Lead
http://api.yandex.com/maps/
Received on Monday, 8 April 2013 15:06:54 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:20:25 UTC