Skip to content

Instantly share code, notes, and snippets.

@evitolins
Created July 25, 2016 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evitolins/e3ef40fa3dd2161283ad47ee7460ac09 to your computer and use it in GitHub Desktop.
Save evitolins/e3ef40fa3dd2161283ad47ee7460ac09 to your computer and use it in GitHub Desktop.
// 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