# HG changeset patch # User Matt Brubeck # Date 1313101668 25200 # Node ID 2d830a098494e6ed8b353dec702bfed39cef1006 # Parent 4bbe000815dd0c232f606513b2f0db9be1abca83 Initial checkin for Touch Events version 1 This version is limited to those parts of the specification that already have interoperable implementations. The following events and attributes will not be included in v1, but will appear in Touch Events v2: * touchenter, touchleave, relatedTarget * radiusX, radiusY, rotationAngle * force diff -r 4bbe000815dd -r 2d830a098494 test/touchevents/single-touch.html --- a/test/touchevents/single-touch.html Wed Aug 03 19:15:56 2011 +0900 +++ b/test/touchevents/single-touch.html Thu Aug 11 15:27:48 2011 -0700 @@ -35,7 +35,6 @@ test(function() { assert_true(ev.target instanceof Element, "target must be an Element."); - assert_equals(ev.relatedTarget, null, "relatedTarget must be null for touchstart event."); }, "touchstart TouchEvent target attributes are correct."); test(function() { @@ -72,17 +71,6 @@ }, "identifiedTouch"); test(function() { - assert_true(t.rotationAngle >= 0, "rotationAngle must be >= 0."); - assert_true(t.rotationAngle < 90, "rotationAngle must be > 90."); - - assert_true(t.radiusX > 0, "radiusX is positive."); - assert_true(t.radiusY > 0, "radiusY is positive."); - - assert_true(t.force >= 0, "force >= 0."); - assert_true(t.force <= 1, "force <= 1."); - }, "Touch attribute values are valid"); - - test(function() { var attrs = ["screenX", "screenY", "clientX", "clientY", "pageX", "pageY"]; for (var i = 0; i < attrs.length; i++) { @@ -153,17 +141,6 @@ }, "touchend identifier matches."); test(function() { - assert_true(t.rotationAngle >= 0, "rotationAngle must be >= 0."); - assert_true(t.rotationAngle < 90, "rotationAngle must be > 90."); - - assert_true(t.radiusX > 0, "radiusX is positive."); - assert_true(t.radiusY > 0, "radiusY is positive."); - - assert_true(t.force >= 0, "force >= 0."); - assert_true(t.force <= 1, "force <= 1."); - }, "Touch attribute values are valid"); - - test(function() { var attrs = ["screenX", "screenY", "clientX", "clientY", "pageX", "pageY"]; for (var i = 0; i < attrs.length; i++) { diff -r 4bbe000815dd -r 2d830a098494 touchevents.html --- a/touchevents.html Wed Aug 03 19:15:56 2011 +0900 +++ b/touchevents.html Thu Aug 11 15:27:48 2011 -0700 @@ -1,7 +1,7 @@ - Touch Events Specification + Touch Events version 1
void initTouchEvent()
@@ -532,13 +466,6 @@

- If the values of radiusX, radiusY, - rotationAngle, or force are known, then the user agent - also must dispatch this event type to indicate when any of these - attributes of a touch point have changed. -

- -

Note that the rate at which the user agent sends touchmove events is implementation-defined, and may depend on hardware capabilities and other implementation details. @@ -553,24 +480,6 @@

-

The touchenter event

-

- A user agent must dispatch this event type to indicate when a - touch point moves onto the interactive area defined by a DOM - element. Events of this type must not bubble. -

-
- -
-

The touchleave event

-

- A user agent must dispatch this event type to indicate when a - touch point moves off the interactive area defined by a DOM - element. Events of this type must not bubble. -

-
- -

The touchcancel event

A user agent must dispatch this event type to indicate when a touch @@ -608,10 +517,6 @@

long pageY
long screenX
long screenY
-
optional long radiusX
-
optional long radiusY
-
optional float rotationAngle
-
optional float force