Skip to content

Apply scroll factor by input device#4221

Draft
coleleavitt wants to merge 2 commits into
niri-wm:mainfrom
coleleavitt:fix/device-scroll-factor
Draft

Apply scroll factor by input device#4221
coleleavitt wants to merge 2 commits into
niri-wm:mainfrom
coleleavitt:fix/device-scroll-factor

Conversation

@coleleavitt

Copy link
Copy Markdown

Summary

  • Parse trackball { scroll-factor ... } like mouse and touchpad scroll factors.
  • Choose scroll-factor settings from the libinput device kind before falling back to axis source.
  • Treat continuous scroll source as touchpad-style fallback when the device kind is unknown.

Issues

Testing

  • cargo test -q scroll_factor_falls_back_to_axis_source_without_device_kind
  • cargo test -q scroll_factor_uses_libinput_device_kind_before_axis_source
  • cargo test -q -p niri-config parse_scroll_factor_combined
  • cargo check --message-format=short
  • pre-push hook: cargo check

@coleleavitt coleleavitt marked this pull request as draft June 21, 2026 14:35
@Sempyos Sempyos added area:input Keyboard, mouse, touchpad, tablet, gestures, pointer area:config Config parsing, default config, new settings pr kind:feature New features and functionality labels Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:config Config parsing, default config, new settings area:input Keyboard, mouse, touchpad, tablet, gestures, pointer pr kind:feature New features and functionality

Projects

None yet

2 participants