Skip to content

pointerleave

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

("pointerleave", (PointerEvent) => void): this;

Emitted when a depressed pointer that has been intersecting this object leaves it.

this

When the pointerleave event is fired, attached handler functions are called with a single argument, a PointerEvent.

symbol.nodes.Plane.on("pointerleave", (e) => {
// Runs when pointerleave occurs on the Plane node
// The argument e contains useful info about this event:
// Stores the ID of the pointer as a number, starting at 0
var pointerNumber = e.pointerId;
// Stores whether or not the pointer is currently down, as a boolean
var isPointerDown = e.pointerDown;
// Stores whether or not the pointer is the primary pointer (the first to touch down), as a boolean
var isPointerPrimary = e.isPrimary;
});