Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent
[
{
name : "target",
type: "EventTarget",
description: "The event target (the topmost target in the DOM tree)."
},
{
name : "type",
type: "DOMString",
description: "The type of event."
},
{
name : "bubbles",
type: "Boolean",
description: "Whether the event normally bubbles or not"
},
{
name : "cancelable",
type: "Boolean",
description: "Whether the event is cancellable or not?"
},
{
name : "view",
type: "WindowProxy",
description: "document.defaultView (window of the document)"
},
{
name : "detail",
type: "long (float)",
description: "0."
},
{
name : "pointerId",
type: "long",
description: "A unique identifier for the pointer causing the event."
},
{
name : "width",
type: "double (float)",
description: "The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer"
},
{
name : "height",
type: "double (float)",
description: "The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer"
},
{
name : "pressure",
type: "float",
description: "The normalized pressure of the pointer input in the range of 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively."
},
{
name : "tiltX",
type: "long (float)",
description: "The plane angle (in degrees, in the range of -90 to 90) between the Y-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the Y axis."
},
{
name : "tiltY",
type: "long (float)",
description: "The plane angle (in degrees, in the range of -90 to 90) between the X-Z plane and the plane containing both the transducer (e.g. pen stylus) axis and the X axis."
},
{
name : "pointerType",
type: "string",
description: "Indicates the device type that caused the event. Must be one of the strings mouse, pen or touch or an empty string."
},
{
name : "isPrimary",
type: "boolean",
description: "Indicates if the pointer represents the primary pointer of this pointer type"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.