Track mouse/touch/pointer events for a given element.
Track mouse/touch/pointer events for a given element.
Track mouse/touch/pointer events for a given element.
…const pointer = pointerTracker.currentPointers[0];
// x offset from the top of the document
pointer.pageX;
// y offset from the top of the document
pointer.pageY;
// x offset from the top of the viewport
pointer.clientX;
// y offset from the top of the viewport
pointer.clientY;
// Unique ID for this pointer
pointer.id;
// The platform object used to create this Pointer
pointer.nativePointer;
// Returns an expanded set of Pointers for high-resolution inputs.
const pointers = pointer.getCoalesced();lib/index.ts - Original TypeScript.dist/PointerTracker.mjs - JS module. Default exports PointerTracker.dist/PointerTracker.js - UMD JS. Exposes PointerTracker on the global by default.dist/PointerTracker-min.js - Minified UMD JS. ~900 bytes brotli'd.No open issues yet, or sync has not completed.