Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Wayland scroll behavior #6533

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gokselk
Copy link

@gokselk gokselk commented Jan 1, 2025

This PR enhances the scroll input handling in Wayland by introducing source-specific scroll adjustments:

  • For mouse wheels:
    • Uses discrete values when available
    • Falls back to normalizing continuous values using standard 15-degree wheel clicks
  • For touchpads and other input sources:
    • Applies a 1/10 scale factor to smooth out scrolling behavior

This change helps address the oversensitive scrolling reported in #3142, particularly making touchpad scrolling more consistent with X11 behavior and other terminal emulators.

Tested on KDE Plasma 6 Wayland with 3-line scroll increments, showing improved consistency with system-wide scrolling behavior.

@gokselk gokselk marked this pull request as draft January 1, 2025 22:54
@gokselk
Copy link
Author

gokselk commented Jan 1, 2025

Identified inconsistent behavior across different DPI settings. This PR is currently a draft while I investigate potential solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant