# Double Click Test

> The Double Click Test catches a mouse that registers two clicks when you press once (called chatter). Click single times on the test pad: any second click arriving within a few milliseconds is flagged, for the left, right and middle buttons separately.

URL: https://atechcraft.com/double-click-test/
Category: Device and Hardware Tests
Last updated: 2026-12-01
Author: Abdul Moid Khan, ATechCraft

Runs in your browser. Your data never leaves your device.

## How to use the Double Click Test

1. Click slowly on the test pad with one button, one click at a time.
2. Watch the counters: each press shows the gap since the previous one.
3. Any gap shorter than the threshold (80 ms by default) is flagged as an accidental double click.
4. Repeat with the right and middle buttons, then check the timing histogram.

## What is a double click test?

A double click test checks whether your mouse sends **two clicks when you press the button once**. This fault is very common on mice that are a year or more old: you click a file once and it opens, or you try to drag something and it drops halfway. The test records the exact time of every press and flags any second press that arrives faster than a human can deliberately click.

## Why does a mouse double click by itself?

Inside each mouse button is a small switch. When you press it, two metal contacts touch and close a circuit. When the contacts are clean and springy, they close once. Over time the metal wears, oxidises or collects dust, and the contacts can **bounce**: they touch, separate for a few milliseconds, and touch again. The mouse sees two separate clicks. This is called switch bounce or **chatter**.

Mouse firmware normally hides bounce with a **debounce** delay, ignoring changes for a few milliseconds after a click. A badly worn switch can bounce for longer than that delay, so the extra click gets through.

## How does the test decide a click was accidental?

Every press on the pad gets a high-precision timestamp from `performance.now()`. The tool calculates the gap between each press and the previous press **on the same button**, then compares it with a threshold.

| Gap between presses | What it usually means |
| --- | --- |
| Under 20 ms | Almost certainly switch bounce |
| 20 to 80 ms | Very likely bounce; people rarely click this fast on purpose |
| 80 to 200 ms | Could be a deliberate fast double click |
| Over 200 ms | Separate, intentional clicks |

The default threshold is 80 ms. You can raise or lower it with the slider. These bands are practical guides, not an industry standard: deliberate double clicks are usually slower because your finger has to lift and press again, while bounce happens within a single press.

The histogram groups every gap under one second. Red bars are gaps below your threshold. A healthy mouse used slowly shows nearly all clicks in the right-hand bars.

## Worked example

You click the left button 40 times, about once per second. The results show:

- Left clicks: **43**
- Suspected double: **3**
- The live message once read "Left button: 14 ms since previous — possible accidental double click!"

You pressed 40 times, but the mouse reported 43. Three presses produced an extra click 10 to 20 ms later. That is classic chatter. A healthy mouse would show 40 clicks and "No chatter".

Repeat with the right button. Right clicks do not open a menu on the pad, so you can test freely. Middle-button (scroll wheel) clicks are counted too.

## How can I fix a mouse that double clicks?

Try these from easiest to hardest:

1. **Clean it.** Unplug the mouse and blow compressed air around the button edges.
2. **Try another USB port or receiver position.** A weak wireless signal rarely causes chatter, but it rules out one cause.
3. **Raise the debounce time** in your mouse software if it has the setting (some gaming mice do). A higher value filters bounce at the cost of very fast clicking.
4. **Update the mouse firmware** through the maker's app.
5. **Check Windows double-click speed.** In Settings > Bluetooth & devices > Mouse > Additional mouse settings, a very slow double-click speed makes normal single clicks look like double clicks. This is a setting issue, not chatter.
6. **Claim the warranty.** Many mice have a 1 to 2 year warranty; chatter is a common accepted fault.
7. **Replace the switch.** Skilled users can desolder the switch and fit a new one.

## Limitations

- The test can only see clicks the mouse reports. If firmware debounce removes a bounce, the test will not see it, which is fine: you will not see it in other apps either.
- Chatter often comes and goes. Test for at least a minute, and test again when the mouse is warm from use.
- Touchpads and touchscreens can be tested, but taps are not switches, so they rarely chatter.

Want to see how fast you can click on purpose? Try the [CPS Test](https://atechcraft.com/cps-test/). For keyboards, use the [Keyboard Tester](https://atechcraft.com/keyboard-tester/), and for touch screens the [Touch Screen Test](https://atechcraft.com/touch-screen-test/). Mouse response time is only one part of reaction speed; measure your own with the [Reaction Time Test](https://atechcraft.com/reaction-time-test/).

## Frequently asked questions

### Why does my mouse double click when I click once?

Usually the metal contact inside the switch has worn or oxidised, so it bounces and sends two signals. This is called switch chatter. Dust, static and old firmware can also cause it.

### What gap counts as an accidental double click?

A human deliberately double clicking usually leaves 100 ms or more between clicks. A gap under about 80 ms on what you thought was one click is almost always switch bounce. You can change the threshold in the tool.

### How can I fix a mouse that double clicks?

Try another USB port, update the mouse software, raise the debounce time if your mouse software allows it, and blow out dust. If it still chatters, the switch can be replaced or the mouse claimed under warranty.

### Does this test right and middle clicks too?

Yes. The pad counts left, right and middle buttons separately. Right clicks do not open a menu inside the pad.
