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

natural_scroll doesn't work with scroll_factor #9447

Open
4 of 6 tasks
veillain opened this issue Feb 19, 2025 · 2 comments
Open
4 of 6 tasks

natural_scroll doesn't work with scroll_factor #9447

veillain opened this issue Feb 19, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@veillain
Copy link

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

I don't know, I started using Hyprland only recently

System Info and Hyprland Version

System/Version info
<Hyprland 0.47.2 built from branch  at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: Sun Feb 2 00:47:17 2025
Tag: v0.47.2, commits: 5767
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.2


no flags were set


System Information:
System name: Linux
Node name: al
Release: 6.13.2-zen1-1-zen
Version: #1 ZEN SMP PREEMPT_DYNAMIC Sat, 08 Feb 2025 18:54:38 +0000


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-UP3 GT1 [UHD Graphics] [8086:46b3] (rev 0c) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:>

Description

when i use natural_scroll only, it will works. But when i added scroll_factor -0.5, the natural_scroll doesn't work anymore

How to reproduce

use this configuration in hyprland.conf
input {
touchpad {
natural_scroll = true
}
}

and then add scroll_factor
input {
touchpad {
scroll_factor = -0.5
natural_scroll = true
}
}

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

hyprland_config_dump.txt

hyprland.log

@veillain veillain added the bug Something isn't working label Feb 19, 2025
@veillain
Copy link
Author

one more thing, the natural_scroll was on the mouse instead touchpad

@fufexan
Copy link
Member

fufexan commented Feb 20, 2025

I think this is an oversight on our part. scroll_factor should not be negative.

Natural scroll basically inverts the scroll direction ($\text{scroll} \cdot -1$), and then you invert it again using the scroll factor ($\text{invertedScroll}\cdot -0.5$). The inversions obviously cancel out and you only get a slowed down scrolling.

So the fix would be to use 0.5 instead of -0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants