The fault this catches
The wheel turns an encoder, a little disc with contacts. When the contacts wear or get dirty, the encoder sometimes reads a notch backwards. On screen the page scrolls down, down, down, then jumps up a line, then continues. People blame the browser for months before they suspect the mouse.
The test logs any notch that arrives in the opposite direction less than 120 ms after the previous one. Nobody reverses a scroll that fast on purpose, so those are the encoder's mistakes. Scroll steadily one way for a while, then the other. A healthy wheel logs nothing.
The other numbers
- Notches per second is how fast you scroll. Free-spinning wheels will show large numbers here; that's fine.
- The big label shows the size of the last step in pixels. Mice usually report 100 or so per notch; touchpads report small varying values because they scroll smoothly rather than in notches.
- deltaMode 0 means the browser is reporting pixels, 1 means lines. It's a detail for the curious and doesn't change the verdict.
If it skips
Compressed air into the wheel slot fixes a surprising number of them. If not, the encoder is a cheap part but a fiddly repair; on a mouse older than three or four years it's usually the sign to replace it.