Skip to content

fix(gpui): scroll one screen per notch when windows is set to scroll a screen at a time - #82

Merged
nolight132 merged 1 commit into
masterfrom
fix/windows-page-scroll
Nov 28, 2026
Merged

nolight132 merged 1 commit into
masterfrom
fix/windows-page-scroll

Conversation

@nolight132

Copy link
Copy Markdown
Member

Summary

  • scroll by the window height per wheel notch when windows reports WHEEL_PAGESCROLL, instead of reading it as billions of lines that throw the view to its far end

Refs sonorahq/sonora#1557

@github-actions github-actions Bot added the windows changes the Windows backend label Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Summary

Windows mouse wheel handling now recognizes the WHEEL_PAGESCROLL setting (u32::MAX). With that setting, an unmodified wheel notch scrolls vertically by the window's logical height. Other wheel input behaves as before: Shift-modified input scrolls horizontally by lines, and other settings scroll vertically by lines.

The Windows mouse wheel handler now separates the wheel notch count from the configured scroll amount. Shift-modified input produces horizontal line scrolling. Unmodified input produces vertical pixel scrolling by the window’s logical height per notch when the setting is WHEEL_PAGESCROLL; otherwise, it produces vertical line scrolling.

Merge Risk: Minimal · up to c288b

On Windows, the wheel scrolls one window height per notch when the system is set to page-at-a-time scrolling, instead of jumping to the end of the view. No concrete merge-blocking risk was found.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@nolight132
nolight132 merged commit 848bff5 into master Nov 28, 2026
3 checks passed
@nolight132
nolight132 deleted the fix/windows-page-scroll branch November 28, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

windows changes the Windows backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant