This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

tiltY

Summary

The plane angle (in degrees, in the range of [-90,90]) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis.

Property of dom/PointerEventdom/PointerEvent

Syntax

Note: This property is read-only.

var result = event.tiltY;

Return Value

Returns an object of type NumberNumber

A value between -90 and +90

Examples

The following is an example of a pointer event handler that outputs the value of the tiltX property to a text field, txtTiltY.

function getTiltY(evt){
var theform=document.forms.frmOutput;
theform.txtTiltY.value=evt.tiltY;
}

Usage

 A positive tiltY is towards the user. tiltY can be used along with tiltX to represent the tilt away from the normal of a transducer with the digitzer. For devices that do not report tilt, the value must be 0.

caption

Attributions