tools / mouse-test
mouse-test/
Test all five mouse buttons, double-click faults, the scroll wheel and your click speed (CPS). Only clicks and scrolls inside the test area are read, and nothing leaves your browser.
Test area
Press every mouse button and scroll the wheel inside this box
Touch screens and pens have no middle or side buttons, so those cannot be tested.
Buttons
| Presses | Possible double | Last gap |
|---|
Scroll wheel
| Up | Down | Left | Right |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
—
What is a mouse button test
A mouse button test reads the button number in the browser’s mouse events: 0 is the left button, 1 the middle, 2 the right, 3 and 4 the side buttons. This page counts each one, flags a suspected double click when the same button goes down twice within 80 ms (adjustable from 20 to 200), and measures click speed (CPS) over 1, 5 or 10 seconds.
How it works
The test area listens to the browser’s mouse events: every press (mousedown) is counted by button number, where 0 is left, 1 middle, 2 right, 3 the back side button and 4 the forward side button. The gap between two presses of the same button is timed with the event’s own timestamp (event.timeStamp), so a brief page stall can’t squeeze two normal presses into a double click; if it is shorter than the threshold (80 ms by default) it counts as one possible double click. Wheel events are counted in the direction of whichever of deltaX and deltaY is larger in absolute value. CPS starts timing at the first click and, when time is up, divides the number of clicks by the seconds.
Example
You click the left button once, but the table records two presses with a last gap of 46 ms. That is shorter than 80 ms, so it counts as one possible double click, a common sign of a worn micro switch. With CPS set to 5 seconds, 34 clicks in 5 seconds gives 6.80 CPS.
FAQ
How do I check if single clicks turn into double clicks
Click one at a time inside the test area, as you normally would. Every press is counted, and if two presses of the same button are closer together than the threshold, one possible double click is recorded and the status line shows the exact gap. Normal single clicks are usually well over 80 ms apart; if you are sure you pressed once but the table shows an extra press with a very short gap, the button is bouncing.
What threshold should I use
The default is 80 ms, adjustable from 20 to 200 ms. If your own fast double clicks are also counted, lower it; to catch bouncing more strictly, raise it and test with very slow single clicks. Changing the threshold only affects later presses.
Will the side buttons make the page go back
Inside the test area the page blocks the browser’s default action for the right, middle and both side buttons, so a side button press is only counted in the table. If a browser does not let this be blocked, the page goes back and the counts are cleared. Outside the test area the side buttons go back or forward as usual.
The side or middle button does nothing
First check that your mouse software has not remapped the side buttons to something else, such as volume or a macro; a remapped button no longer reaches the browser as back or forward. Touchpads and touch screens have no middle or side buttons; when you tap the test area with a touch screen or a pen, the page shows a note. Button numbers above 4 reported by the browser are counted in the “Other” row.
What do the scroll wheel numbers mean
Each scroll event is counted by direction; scrolling up has a negative deltaY. The line below shows the raw deltaX, deltaY and unit of the latest event; the unit can be pixels, lines or pages, depending on the browser and system settings. Trackpads and high-resolution wheels naturally send several events per movement, so several counts are normal there; with "Natural scrolling" on in macOS, the recorded direction is the opposite of the way the wheel turns, which is also normal. Only on an ordinary notched wheel, if one notch adds several counts or scrolling one way is recorded as up and down by turns, may the wheel encoder be faulty.
How is CPS calculated
CPS means clicks per second. Pick 1, 5 or 10 seconds, click “Start CPS test”, and the timer starts with your first click in the box below; only left clicks count. When time is up, the clicks are divided by the seconds and shown to two decimals. Clicking the box without pressing “Start CPS test” doesn’t start anything, and after a round ends you press the button again for the next one, so an extra last click can’t start a new round. The last 5 results are listed alongside. Without a mouse, Tab to “Start CPS test” and press Enter; focus moves to the box, then press Space or Enter, each press counting as one click. On a phone, finger taps count too, and alternating two fingers counts every tap. After you press the button but before the first click, press it again (it now says “Cancel”) or press Esc to back out.
Can it test polling rate or latency
No. This page does not test polling rate or latency; it only records buttons, gaps, scrolling and click counts.
Are my clicks uploaded
No. The page only reads clicks and scrolling inside the test area and the CPS box, not mouse movement elsewhere. Counts live only in this page’s memory; nothing is saved on your device or passed to site analytics, and refreshing clears it.