Not TestedTesting not done, may not work properly
Input & Interaction

Pointer Events API

Unified input hardware handler for mouse, touch screen, and digital pen stylus inputs.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

element.addEventListener('pointerdown', (e) => {
  console.log(e.pointerType, e.pressure);
});

About the Pointer Events API Web API

Pointer Events handles mouse, touch, and pen/stylus input through a unified event model.

Specification:W3C & WHATWG Web API Standard
Sponsored Content