Repository navigation
Archive note / 归档说明
This is the last build with a prebuilt exe, kept here on purpose. The source has moved on to 1.0.9, and no newer installers are published. For the maintained build, install MouseFix from the Microsoft Store.
这是最后一个带编译产物的版本,故意留在这里。源码已经跟到 1.0.9,不再发布新的安装包。需要持续更新的版本,请从微软商店安装。
🇺🇸 English
What's Fixed
Smart Drag (Hybrid Heuristic) was causing the exact problem it was supposed to solve — dragging would randomly release mid-motion on mice with worn-out switches.
Root causes:
- Confirm timeout (50ms) was shorter than typical bounce intervals, so the "fix" injected mouse-up events during active drags
- Bounce down events during confirm didn't update
downTime, causing hold time to accumulate indefinitely and trigger false Smart Drag on every subsequent up - Implicit state tracking via boolean flags (
isBlocked,isDeferringRelease) made state transitions hard to reason about
What Changed
- Replaced boolean flags with explicit 5-state machine:
IDLE → PRESSED → DRAGGING → CONFIRMING → BLOCKED - Increased confirm timeout from 50ms to 150ms
- Upgraded timing precision from
GetTickCount64(~15ms) toQueryPerformanceCounter(~1μs) - Bounce down during confirm now properly resets drag state and updates timestamps
Download
| File | Description |
|---|---|
| MouseFix-x64.exe | 64-bit (recommended) |
| MouseFix-x86.exe | 32-bit |
🇨🇳 中文
修复了什么
Smart Drag(智能拖拽保护)之前反而导致了它本该解决的问题 —— 在微动老化的鼠标上,拖拽过程中会随机松开。
根本原因:
- 确认超时(50ms)比典型的 bounce 间隔还短,导致"修复"反而在拖拽中途注入了松开事件
- bounce down 事件在确认期间没有更新
downTime,导致按住时间无限累加,后续每次 up 都误触发 Smart Drag - 用布尔标记(
isBlocked、isDeferringRelease)隐式追踪状态,状态转换难以推理
改动内容
- 用显式 5 状态状态机替代布尔标记:
IDLE → PRESSED → DRAGGING → CONFIRMING → BLOCKED - 确认超时从 50ms 延长到 150ms
- 计时精度从
GetTickCount64(~15ms)升级到QueryPerformanceCounter(~1μs) - bounce down 在确认期间现在能正确重置拖拽状态并更新时间戳
下载
| 文件 | 说明 |
|---|---|
| MouseFix-x64.exe | 64位(推荐) |
| MouseFix-x86.exe | 32位 |