From efe7d4f6b891a2a3f53112ca9d7b262462465c2d Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Fri, 10 Jun 2016 23:44:59 +0100 Subject: [PATCH] Add tangential pressure --- index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index df02e8c..73c6e11 100644 --- a/index.html +++ b/index.html @@ -263,6 +263,10 @@

PointerEvent Interface

The normalized pressure of the pointer input in the range of [0,1], where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively. For hardware that does not support pressure, the value MUST be 0.5 when in the active buttons state and 0 otherwise.
+
readonly attribute float tangentialPressure
+
+ The normalized tangential pressure (also known as barrel pressure), typically set by an additional control (e.g. a finger wheel on an airbrush stylus), of the pointer input in the range of [-1,1], where 0 is the neutral position of the control. Note that some hardware may only support positive values in the range of [0,1]. For hardware that does not support tangential pressure, the value MUST be 0. +
readonly attribute long tiltX

The plane angle (in degrees, in the range of [-90,90]) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis. A positive tiltX is to the right. tiltX can be used along with tiltY to represent the tilt away from the normal of a transducer with the digitizer. For devices that do not report tilt, the value MUST be 0.

@@ -313,6 +317,8 @@

PointerEvent Interface

Initializes the height property of the PointerEvent object.
float pressure = 0
Initializes the pressure property of the PointerEvent object.
+
float tangentialPressure = 0
+
Initializes the tangentialPressure property of the PointerEvent object.
long tiltX = 0
Initializes the tiltX property of the PointerEvent object.
long tiltY = 0
@@ -536,7 +542,7 @@

The pointerdown event

The pointermove event

-

A user agent MUST fire a pointer event named pointermove when a pointer changes coordinates. Additionally, when a pointer changes button state, pressure, tilt, twist, or contact geometry (e.g. width and height) and the circumstances produce no other pointer events defined in this specification then a user agent MUST fire a pointer event named pointermove.

+

A user agent MUST fire a pointer event named pointermove when a pointer changes coordinates. Additionally, when a pointer changes button state, pressure, tangential pressure, tilt, twist, or contact geometry (e.g. width and height) and the circumstances produce no other pointer events defined in this specification then a user agent MUST fire a pointer event named pointermove.

The pointerup event

@@ -931,6 +937,7 @@

Revision History

The following is an informative summary of substantial and major editorial changes between publications of this specification, relative to the first [[PointerEvents]] specification. See the complete revision history of the Editor's Drafts of this specification.

Changes since the 24 February 2015 Recommendation