[Webkit-unassigned] [Bug 10598] JSMouseEvent needs to expose tablet pressure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 8 18:13:09 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=10598





--- Comment #8 from Ilmari Heikkinen <ilmari.heikkinen at gmail.com>  2009-12-08 18:13:08 PST ---
(In reply to comment #7)
> We should also look at whatever the iPhone has done for multi-touch events.

The iPhone multi-touch events could be boiled down to a unique id for every
tracked touch, attached to mouse events. Rest seems to be implementable as JS
application logic. Mousedown would start a touch track, mousemove would track
the movement and mouseup would end it.

The way they currently work is that there's a Touch object for each tracked
touch, and TouchEvents that carry a list of the Touch objects modified by the
event. The touch events follow the mouse event naming (touchdown, touchmove,
touchend), with an additional touchcancel event for canceled touches. The
TouchEvents also carry some gesture level data, namely rotation and
pinch-scale.

Additionally, there's a GestureEvent that has rotation and pinch-scale info as
well. The use of it seems to be in easy combining of separate TouchEvents.

(Wrote the above based on a quick reading of Safari DOM Extensions Reference,
corrections from more knowledgeable people welcome.)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list