Mouse & Trackpad

Mouse Test

Click every button on your mouse. Each one lights up below the instant the browser receives it — if a button never lights up, the signal isn't reaching the browser at all.

Test area

L
R
●
Back
Fwd

Click anywhere in this area with left, right, and middle buttons, scroll the wheel, drag, and — if your mouse has them — press the thumb side buttons.

Side buttons only work on mice that have them (common on gaming and productivity mice).

What this actually tests

The browser sees mouse buttons as numbered inputs, not physical parts — button 0 is left, 2 is right, 1 is the wheel, and 3/4 are the thumb buttons. This page reports what actually arrives at that level, so a button that never registers here has failed somewhere between the switch and the driver, not in your software.

The same 50 milliseconds of a mouse flick reconstructed from 1000 Hz reports and from 125 Hz reports Two plots of pointer displacement over one 50 millisecond flick that snaps to a target, overshoots back, then makes a small correction. At 1000 hertz the mouse reports every millisecond and all 51 samples trace the movement exactly. At 125 hertz it reports every 8 milliseconds, giving only 7 samples, and the straight lines between them cut both sharp turns: the peak of the flick at 21 milliseconds is never reported, and neither is the lowest point of the overshoot at 27 milliseconds. The cursor is also working from a position up to 8 milliseconds out of date throughout. 1000 Hz 1 ms / report 51 samples every turn captured 125 Hz 8 ms / report 7 samples peak never reported overshoot never reported dashed = the real movement 0816 243240 48 milliseconds — the ticks are the only moments a 125 Hz mouse speaks one 60 Hz frame (16.7 ms) = 2 reports at 125 Hz, 17 at 1000 Hz
What polling rate actually changes. Polling rate is how often the mouse is allowed to tell the computer where it is — 125 Hz means once every 8 ms, 1000 Hz once every 1 ms. It does not make the sensor more precise; it decides how much of a fast movement survives the trip. Smooth, slow motion samples almost perfectly at either rate, which is why polling rate is invisible on the desktop. The flick above is where it shows: both sharp turns fall between 125 Hz reports, so the computer draws straight lines through them and the peak of the flick is never reported at all. Between reports the cursor is also working from a position up to 8 ms stale. Past roughly 1000 Hz the reports arrive faster than a 60 or 144 Hz display can show them, which is why 4000 Hz feels far less different than 125 Hz to 1000 Hz does.

If a button doesn't respond

  1. Try a different USB port, and a different cable if it has one.
  2. Test on another computer — that separates the mouse from the driver.
  3. Check the vendor software. Side buttons are often remapped to nothing by default.
  4. Reinstall the driver, then re-run this test before buying a replacement.

Clicking twice when you click once?

Double-click test

How the readout is built

Everything above comes from Pointer Events — the modern API that unified mouse, pen and touch input behind one set of events. The page listens for pointerdown, pointermove, pointerup and wheel, and reads four things off each one: which button changed, where the pointer was, how far it has travelled since the press, and how much the wheel turned.

Buttons are numbers, and two of them fight the browser

A pointer event reports the button that changed as e.button: 0 for left, 1 for middle, 2 for right, then 3 and 4 for the side buttons most mice map to Back and Forward. That is the mapping the zones above light up from, which is why the test can tell a dead middle-click from a dead right-click without knowing anything about your particular mouse.

Two of those would normally be taken by the browser itself: right-click opens the context menu, and middle-click opens a link in a new tab or starts autoscroll. This page cancels both — contextmenu and auxclick are suppressed inside the test area — so you can press them and see the result instead of losing the page. It is also why right-clicking works normally again the moment your pointer leaves the box.

The side buttons are the least reliable to test anywhere, and not because of the mouse. Many mice send Back and Forward not as buttons 3 and 4 but as the keyboard shortcuts for browser navigation, configured that way in the manufacturer's software. If yours does, pressing them navigates your history and no button event ever arrives — the side-buttons guide covers telling those two cases apart.

Why a drag keeps working outside the box

When you press down, the page calls setPointerCapture, which routes every subsequent event for that pointer to the test area until you release — even if the cursor travels well outside it. Without that, a drag would silently stop being tracked at the edge and a perfectly good mouse would look like it had a drag fault. It is the same mechanism that keeps a slider working when your hand wanders off it.

What the coordinates are, and what they are not

The position shown is in CSS pixels, relative to the top-left of the test area. That is a deliberate but real limitation: a browser is never told how far your mouse physically moved. It is told where the cursor ended up, after the sensor's counts have been scaled by your DPI setting, then by the operating system's pointer speed and any acceleration curve, then by the page's zoom level and the display's device pixel ratio. Those layers are not reversible from inside a page.

The practical consequence is worth stating plainly, because plenty of sites claim otherwise: no browser tool can read your mouse's DPI or its polling rate. It can observe how often events arrive and how far the cursor moved between them, and infer something approximate from that — but inference is not measurement, and both figures are better read from your mouse's own software. What this page can establish, definitively, is whether each button registers, whether movement is reported continuously, and whether the wheel reports in both axes.

Movement events are batched to your frame rate

One more thing that surprises people: a 1000 Hz mouse does not produce 1000 pointermove events per second. Browsers coalesce pointer movement, delivering roughly one event per animation frame — about 60 a second on a 60 Hz display — because firing a thousand handlers a second would wreck page performance for no visual benefit. The intermediate samples are not thrown away; they are retrievable through getCoalescedEvents(), which exists precisely because drawing and gesture-recognition code needs the full path. This page reads the delivered events as they arrive and does not unpack them, which is all a pass/fail check needs — and it is the second reason a browser's view of polling rate is indirect rather than measured.

FAQ

My mouse works in some apps but buttons don't light up here — why?

Some launcher or macro software intercepts buttons before the browser sees them, remapping a click into a keyboard shortcut or an app action instead of a real click event. Close vendor software like Logitech Options or Razer Synapse and try again — if the button lights up with that software closed, the remap is the cause, not a hardware fault.

Do side buttons work on every mouse?

No — only mice that physically have thumb buttons will register anything on Back/Forward, and even then some budget mice wire them as keyboard shortcuts rather than real mouse buttons, so they won't show up here at all. That's normal for that hardware, not a defect.

Can this test detect a failing sensor?

Indirectly. If movement never registers regardless of surface, cable, or USB port, that points to the sensor or its connection rather than a setting. But a sensor that mostly works with occasional jumps or dropouts needs the surface and connection checks in the guide above before you write it off as hardware failure.

Related tools