Pointer events (mouse, pen, touch detail)
Reports pointer position and, for pens and touch, pressure, tilt and contact size.
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
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 55 | 2016-12-01 | None |
| Edge | Supported | 12 | 2015-07-29 | None |
| Firefox | Supported | 59 | 2018-03-13 | None |
| Safari | Supported | 13 | 2019-09-19 | None |
| Safari on iPhone | Supported | 13 | 2019-09-19 | All iOS browsers use WebKit |
| Chrome on Android | Supported | 55 | 2016-12-06 | None |
| Samsung Internet | Supported | 6.0 | 2017-08-23 | None |
How a site asks for it
| API | pointerdown/move/up; PointerEvent.pressure, tiltX, tiltY, width, height, pointerType; getCoalescedEvents(); pointerrawupdate |
| Browser compat keys | api.PointerEventapi.PointerEvent.getCoalescedEventsapi.Element.pointerrawupdate_event |
| How access is granted | none |
| What the user sees | None (no browser prompt) |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| Activation | none |
| How long it lasts | While the pointer is over the page |
| How to take it back | Nothing to revoke (no permission is stored) |
| Inside an iframe | Events go to the frame under the pointer; no cross-origin leak across frames |
Typical flow
- Person moves the pointer or touches
- pointermove events fire (usually once per frame, or at the device rate with getCoalescedEvents)
- Page reads coordinates and pressure
Data you get
What comes back: Pointer samples
Shape: event
How often: per frame or device rate
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
pressure | float | None | 0 to 1 | device dependent |
tiltX | integer | degrees | -90 to 90 | 1 degree |
width | float | CSS px | 1 to about 100 | device 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
| Type | Example | Apps |
|---|---|---|
| games | A browser game reads mouse position and clicks many times a second for aiming and dragging. | Agar.io, Slither.io |
| creative | A web drawing tool uses pen pressure and tilt to vary line thickness. | Figma, Excalidraw, Photopea |
| creative | A whiteboard app shows teammates' live cursors by sending pointer positions to others. | Miro, FigJam |
| analytics | A heatmap tool records where visitors move and click to show the busy parts of a page. | Hotjar, Microsoft Clarity |
| security | A bot detector checks if the mouse path is a perfect straight line, a sign of a script. | reCAPTCHA, Cloudflare Turnstile |
| ads | An ad network measures hover time over an ad as a sign of attention. | None named |
| banking | A 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
- MDN (standards docs): Pointer events. Describes one set of events for mouse, pen and touch, with extras like pressure and tilt for pens.
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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 5 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 2 | Rough identifying entropy, when known |
History
- 2016-12, Chrome 55: Pointer Events ship in Chrome stable
- 2019-09, Safari 13: Pointer Events ship in Safari
Related capabilities
Related
- Touch events and touch point count. Can see your finger touches and how many touch points your device supports
- Pointer Lock. Can hide your mouse pointer and capture its movement for games or 3D views
Sources
How well checked: Based on official documentation.