Repository navigation
[BUG REPORT] 修复 Windows 鼠标跟踪程序的滚轮上报被系统行数放大 - #69
Open
WhiteGiverMa wants to merge 1 commit into
Open
WhiteGiverMa wants to merge 1 commit into
WhiteGiverMa wants to merge 1 commit into
Conversation
This was referenced Nov 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type
What and why
Windows 鼠标跟踪模式下按滚轮刻度计数,避免系统滚动行数放大 TUI 的输入次数。
Closes #68
Bug details
SPI_GETWHEELSCROLLLINES。仅在 Windows 且鼠标跟踪开启时,在累加、截断和限幅前除回该值,并使用独立的小数残量,避免混合「行」与「刻度」。本地历史、Shift、备用屏幕箭头、Pixels 换算及其他平台的原有路径保持不变。没有新增配置或依赖。
How it was tested
Windows 11 build 26300,x86_64 MSVC,Rust 1.95.0:
以上通过,完整测试 418 passed。
新增 3 项 Windows 回归在旧实现下失败、修复后通过,覆盖:
WHEEL_PAGESCROLL,包含反向和一次多格。另启真实 ELY 窗口,子程序启用
1000/1006并读取原始 VT 输入。定向发送WM_MOUSEWHEEL,经过 GPUI、ELY 和随程序附带的 OpenConsole / ConPTY:+120+12-120验证边界:这是原生窗口消息驱动,不是物理鼠标录制。修复后的 OpenCode 视觉滚动、其他平台运行时及其他系统行数的 GUI 行为尚未实测;其他行数由函数回归测试覆盖。
Checklist
[FEATURE REQUEST],[BUG REPORT]or[Other]