Mouse Test

Check that every mouse button and the scroll wheel register, and catch a worn switch that double clicks. Click inside the test area to start.

Click every button and scroll the wheel inside this box.

Left (0)
0
Not pressed yet
Middle (1)
0
Not pressed yet
Right (2)
0
Not pressed yet
Back (3)
0
Not pressed yet
Forward (4)
0
Not pressed yet
Wheel
↑0 ↓0
Scroll up and down

Two presses of the same button closer together than 80 ms are flagged as a likely chattering switch.

How to use the mouse test

  1. Move your pointer into the test area. Right clicks, side buttons and scrolling won't affect the page while it's there.
  2. 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.
  3. Scroll the wheel up and down. The arrows above and below the wheel light up.
  4. 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.

NumberButtonUsual action
0Left (primary)Select, click links
1Middle (wheel click)Open links in a new tab, autoscroll
2Right (secondary)Context menu
3Back (side button)Previous page
4Forward (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 seeLikely causeWhat to try
A button never turns greenThe switch is dead, or mouse software has remapped the buttonReset the button to its default in the software, then test again
Possible double clicks on one buttonA 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 ownThe switch loses contact while held, which breaks draggingSame as double clicks: it's usually the same worn switch
Only one wheel direction countsA faulty scroll encoder, or a wheel mode in the mouse softwareCheck the wheel settings, then run the scroll wheel test
Nothing registers at allThe pointer is outside the test area, or no mouse is detectedMove 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.

ThresholdDeliberate clicking speed that would trip it
30 msover 33.3 clicks per second
50 msover 20 clicks per second
80 ms (default)over 12.5 clicks per second
100 msover 10 clicks per second
150 msover 6.7 clicks per second
200 msover 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

  1. Check the mouse software. Some gaming mice let you set a debounce time, and a very short one can let chatter through.
  2. Blow compressed air around the button, then test again.
  3. Plug the mouse into another port or computer to rule out a software cause.
  4. 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

  1. Press every button once and make sure each part of the diagram turns green.
  2. Click each main button slowly 30 times and check the count matches with no flagged presses.
  3. Hold each main button for ten seconds.
  4. 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

Frequently asked questions

How do I know if my mouse is double clicking?

Click the button you suspect slowly, one click at a time, inside the test area. If the click count goes up by two, or the tool lists a possible double click, the switch registered two presses for one click. A worn or dirty switch that bounces like this is called chattering.

Why don't my side buttons work in the test?

The browser only sees side buttons that send the standard back and forward signals (button numbers 3 and 4). If your mouse software maps a side button to a key, a macro or DPI switching, the browser receives that action instead of a button press. Reset the button to its default in the mouse software, then test again.

What double-click threshold should I use?

Start with the default of 80 ms. Real human double clicks are usually slower than that, so presses closer together are likely switch bounce. If you click very fast on purpose, lower the threshold. If you want to catch borderline cases, raise it a little and click slowly.

Can this test fix a double-clicking mouse?

No. The test only shows the problem. Common fixes are cleaning the switch with compressed air, updating the mouse firmware, using the warranty, or replacing the switch if you're comfortable soldering. Some mouse software also has a debounce setting that ignores very fast repeat presses.

Does the mouse test work on a laptop touchpad?

Partly. A touchpad tap or click counts as a left click, and a two-finger click usually counts as a right click. Touchpads don't have middle, back or forward buttons, and two-finger scrolling sends many small scroll events rather than wheel notches.