CLIENT_POSITION
enum
Commons
Axis selector for pointer / touch event client coordinates (clientX or clientY).
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- CLIENT_POSITION.Y
- Vertical axis — maps to the clientY property of a pointer event.
- CLIENT_POSITION.X
- Horizontal axis — maps to the clientX property of a pointer event.
Usage
Examples
Ready-to-paste code snippets using this enum.
Using CLIENT_POSITION to read the correct axis