How to use the mouse test
- Move your pointer into the test area. Right clicks, side buttons and scrolling won't affect the page while it's there.
- Press each button once: left, right, the wheel (middle click), and both side buttons. Each part of the diagram turns green once it has worked.
- Scroll the wheel up and down. The arrows above and below the wheel light up.
- To check for double clicking, click one button slowly 20 or 30 times. Every click should add exactly one to the count.
How the test works
Your browser numbers mouse buttons in every press it reports. The test reads that number, highlights the matching part of the diagram, and adds one to that button's count. Scroll events give a direction from the sign of their vertical movement.
For double clicks, the test stores the time of each press. When the same button is pressed again sooner than the threshold, that press is flagged. A human double click is a deliberate pair of presses, but a chattering switch makes contact twice within a few milliseconds, which is far faster than anyone clicks on purpose. The list under the counts shows the exact gap for each flagged press.
The test runs entirely in your browser. Nothing you click is sent anywhere.
Mouse button numbers
These are the button numbers browsers use, as defined in the web's UI Events standard. The test shows the same number next to each button.
| Number | Button | Usual action |
|---|---|---|
| 0 | Left (primary) | Select, click links |
| 1 | Middle (wheel click) | Open links in a new tab, autoscroll |
| 2 | Right (secondary) | Context menu |
| 3 | Back (side button) | Previous page |
| 4 | Forward (side button) | Next page |
Left-handed settings swap buttons 0 and 2 in your operating system, so the test will show them swapped too.
What the results mean
| What you see | Likely cause | What to try |
|---|---|---|
| A button never turns green | The switch is dead, or mouse software has remapped the button | Reset the button to its default in the software, then test again |
| Possible double clicks on one button | A worn or dirty switch that bounces (chatters) | Check the debounce setting, clean around the button, then see the steps below |
| A held button lights up and goes dark on its own | The switch loses contact while held, which breaks dragging | Same as double clicks: it's usually the same worn switch |
| Only one wheel direction counts | A faulty scroll encoder, or a wheel mode in the mouse software | Check the wheel settings, then run the scroll wheel test |
| Nothing registers at all | The pointer is outside the test area, or no mouse is detected | Move into the test area; plug the mouse in or try another port |
Choosing the double-click threshold
The threshold works as a speed limit. To trip it on purpose, you'd have to click faster than 1000 ÷ the threshold times a second. The default is 80 ms.
| Threshold | Deliberate clicking speed that would trip it |
|---|---|
| 30 ms | over 33.3 clicks per second |
| 50 ms | over 20 clicks per second |
| 80 ms (default) | over 12.5 clicks per second |
| 100 ms | over 10 clicks per second |
| 150 ms | over 6.7 clicks per second |
| 200 ms | over 5 clicks per second |
If you click fast during the test, lower the threshold. If you suspect a fault that the default misses, raise it and click slowly, so any flagged press can only be the switch.
How to fix a double-clicking mouse
- Check the mouse software. Some gaming mice let you set a debounce time, and a very short one can let chatter through.
- Blow compressed air around the button, then test again.
- Plug the mouse into another port or computer to rule out a software cause.
- If the same button keeps flagging, the switch is worn. Look up the warranty before replacing the switch or the mouse.
Check that held buttons stay pressed
A switch can pass the click test and still fail when you hold it. Press and hold the left button for about ten seconds while you watch the diagram. It should stay lit the whole time. If it flickers off and back on, the switch is losing contact, which drops drags, text selections and held fire in games. Repeat for the right button.
Side buttons and remapped buttons
Browsers only see five buttons: left, middle, right, back and forward. If your mouse software maps a button to a key, a macro or a DPI change, the browser gets that action instead of a click, so the button won't light up here. Reset the button to its default in the software to test the switch, or check a key mapping with thekeyboard test. Extra buttons beyond the standard five can't be tested in a browser.
Testing a mouse before you keep it
- Press every button once and make sure each part of the diagram turns green.
- Click each main button slowly 30 times and check the count matches with no flagged presses.
- Hold each main button for ten seconds.
- Scroll both ways, then run the scroll wheel test for a closer look.
On a laptop trackpad, the system decides which gesture counts as a right click, so results depend on your settings. On a touchscreen, taps count as left clicks. If no mouse is detected, the test shows a notice, so plug the mouse in before you start.
More mouse tests
- Scroll wheel test: count notches and catch steps that go the wrong way.
- Mouse polling rate test: see how many times per second your mouse reports.
- Mouse DPI test: measure your real DPI with a ruler.
- CPS test: see how fast you can click.