Skip to Content
Platform.Ontology

Pointer events (mouse, pen, touch detail)

Reports pointer position and, for pens and touch, pressure, tilt and contact size.

Gets silentlyTyping and clipboardPointerWeb browsersWhile you use it

In one line

Can see where your mouse, finger or pen is and how it moves on the page

Reports pointer position and, for pens and touch, pressure, tilt and contact size.

Mouse paths, speed and hesitation are strong behavioral signals (bot detection, attention tracking). Pen and touch fields add pressure and tilt that can tell devices apart.

What it can and can't do

What the user does: Nothing. It happens while you move or tap over the page

It can

  • Follow the path and speed of your mouse, finger or pen
  • Measure pen pressure, tilt and finger contact size where the device allows it
  • Tell humans from bots by how you move
  • Learn where you hesitate or hover

It cannot

  • See where you point on other pages or in other apps
  • See movement when the page is in the background
  • Show a permission pop up; there is none

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported552016-12-01None
EdgeSupported122015-07-29None
FirefoxSupported592018-03-13None
SafariSupported132019-09-19None
Safari on iPhoneSupported132019-09-19All iOS browsers use WebKit
Chrome on AndroidSupported552016-12-06None
Samsung InternetSupported6.02017-08-23None

How a site asks for it

APIpointerdown/move/up; PointerEvent.pressure, tiltX, tiltY, width, height, pointerType; getCoalescedEvents(); pointerrawupdate
Browser compat keysapi.PointerEvent
api.PointerEvent.getCoalescedEvents
api.Element.pointerrawupdate_event
How access is grantednone
What the user seesNone (no browser prompt)
Needs a secure context (HTTPS)No
Needs a user gestureNo
Activationnone
How long it lastsWhile the pointer is over the page
How to take it backNothing to revoke (no permission is stored)
Inside an iframeEvents go to the frame under the pointer; no cross-origin leak across frames

Typical flow

  1. Person moves the pointer or touches
  2. pointermove events fire (usually once per frame, or at the device rate with getCoalescedEvents)
  3. Page reads coordinates and pressure

Data you get

What comes back: Pointer samples
Shape: event
How often: per frame or device rate

FieldTypeUnitRangePrecision
pressurefloatNone0 to 1device dependent
tiltXintegerdegrees-90 to 901 degree
widthfloatCSS px1 to about 100device dependent

Technical limits

  • Sees pointer only inside its own viewport (and over its iframes' areas as the iframe's events)
  • pressure is 0 to 1 (0.5 for devices without pressure while a button is down); tiltX and tiltY are -90 to 90 degrees; twist 0 to 359
  • Coalesced events can expose input at 120 Hz or more (Chrome 58 and later, Firefox 59, Safari 18.2 per BCD)
  • pointerType is mouse, pen or touch; width and height reveal finger contact size (CSS px)
  • No pointer data while the pointer is outside the viewport, except with setPointerCapture or Pointer Lock

The story

What it is

The page sees where your mouse, pen or finger is, how fast it moves, and how hard you press.

For you

You move, click, draw or swipe and the page responds smoothly. You may not notice it also sees the path your pointer takes and how long you pause. A pen can add pressure and tilt, so lines look natural.

For makers

Mice and pens drive games and creative tools. Makers also study movement patterns to detect bots, find confusing parts of a page and tune ads and layouts.

Where you see it

TypeExampleApps
gamesA browser game reads mouse position and clicks many times a second for aiming and dragging.Agar.io, Slither.io
creativeA web drawing tool uses pen pressure and tilt to vary line thickness.Figma, Excalidraw, Photopea
creativeA whiteboard app shows teammates' live cursors by sending pointer positions to others.Miro, FigJam
analyticsA heatmap tool records where visitors move and click to show the busy parts of a page.Hotjar, Microsoft Clarity
securityA bot detector checks if the mouse path is a perfect straight line, a sign of a script.reCAPTCHA, Cloudflare Turnstile
adsAn ad network measures hover time over an ad as a sign of attention.None named
bankingA bank adds mouse habits to its risk score for a login.None named

Risks

  • Movement habits identify people
  • Used in tracking

What the platform says

Good uses and abuse

Legitimate uses

  • Drawing apps
  • Gestures
  • Games

Known abuse

  • Mouse movement biometrics
  • Session replay heat maps
  • Bot detection from cursor path

Scores

ScoreValueMeaning
Sensitivity3 of 5How revealing the data is
Utility5 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits2Rough identifying entropy, when known

History

  • 2016-12, Chrome 55: Pointer Events ship in Chrome stable
  • 2019-09, Safari 13: Pointer Events ship in Safari

Sources

How well checked: Based on official documentation.

On this page