The 2D layer · interface
PointerState
Explained in Sprites and tilemaps.
interface PointerStateimport type { PointerState } from '@driftengine/ui2d';Properties
| Name | Type | Description |
|---|---|---|
captured | UiNode | null | The node holding the pointer, or null. |
dragSource | UiNode | null | Where a drag began, or null when none is in progress. |
dragTarget | UiNode | null | The last node the drag was over, excluding the source itself. |
dragPayload | string | What the drag is carrying. Opaque to this module. |