kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.58k stars 984 forks source link

Annoyingly slow scroll speed on trackpad #7256

Closed emilyyyylime closed 7 months ago

emilyyyylime commented 7 months ago

Describe the bug On Kitty, swiping my fingers along my entire trackpad scrolls around 10 lines, while on other software I can scroll a full page using only about one third of the trackpad's height.

Environment details

kitty 0.33.0 created by Kovid Goyal
Linux margarita 6.8.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sat, 16 Mar 2024 17:15:35 +0000 x86_64
Arch Linux 6.8.1-arch1-1 (/dev/tty)

DISTRIB_ID="Arch"
DISTRIB_RELEASE="rolling"
DISTRIB_DESCRIPTION="Arch Linux"
Running under: Wayland
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /bin/bash
Loaded config files:
  /home/emilylime/.config/kitty/kitty.conf

Config options different from defaults:
enable_audio_bell    False
font_family          Fira Code
font_features:
{'FiraCode-Bold': ('+zero', '+ss02', '+ss07'),
 'FiraCode-Light': ('+zero', '+ss02', '+ss07'),
 'FiraCode-Medium': ('+zero', '+ss02', '+ss07'),
 'FiraCode-Regular': ('+zero', '+ss02', '+ss07'),
 'FiraCode-Retina': ('+zero', '+ss02', '+ss07')}
force_ltr            True
paste_actions        frozenset({'quote-urls-at-prompt'})
symbol_map:
    U+00a9 - U+00a9 → U+00AE, U+203C, U+2049, U+20E3, U+2122, U+2139, U+2194-2199, U+21A9-21AA, U+231A, U+231B, U+2328, U+23CF, U+23E9-23F3, U+23F8-23FA, U+24C2, U+25AA, U+25AB, U+25B6, U+25C0, U+25FB-25FE, U+2600-27EF, U+2934, U+2935, U+2B00-2BFF, U+3030, U+303D, U+3297, U+3299, U+1F000-1F02F, U+1F0A0-1F0FF, U+1F100-1F64F, U+1F680-1F6FF, U+1F910-1F96B, U+1F980-1F9E0 Twemoji
    U+23fb - U+23fe → Symbols Nerd Font
    U+2665 - U+2665 → Symbols Nerd Font
    U+26a1 - U+26a1 → Symbols Nerd Font
    U+2b58 - U+2b58 → Symbols Nerd Font
    U+e000 - U+e00d → Symbols Nerd Font
    U+e0a3 - U+e0a3 → Symbols Nerd Font
    U+e0b4 - U+e0c8 → Symbols Nerd Font
    U+e0cc - U+e0d2 → Symbols Nerd Font
    U+e0d4 - U+e0d4 → Symbols Nerd Font
    U+e200 - U+e2a9 → Symbols Nerd Font
    U+e300 - U+e3eb → Symbols Nerd Font
    U+e5fa - U+e62b → Symbols Nerd Font
    U+e700 - U+e7c5 → Symbols Nerd Font
    U+f000 - U+f2e0 → Symbols Nerd Font
    U+f101 - U+f208 → nonicon
    U+f27c - U+f27c → Symbols Nerd Font
    U+f300 - U+f313 → Symbols Nerd Font
    U+f400 - U+f4a8 → Symbols Nerd Font
    U+f500 - U+fd46 → Symbols Nerd Font
Changed shortcuts:
    kitty_mod+w →  no-op

Important environment variables seen by the kitty process:
    PATH                                /home/emilylime/scripts/:/home/emilylime/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG                                en_GB.UTF-8
    EDITOR                              hx
    SHELL                               /bin/bash
    DISPLAY                             :0
    WAYLAND_DISPLAY                     wayland-1
    USER                                emilylime
    XCURSOR_SIZE                        24
    XDG_SEAT                            seat0
    XDG_SESSION_TYPE                    wayland
    XDG_CURRENT_DESKTOP                 sway
    XDG_SESSION_CLASS                   user
    XDG_VTNR                            1
    XDG_SESSION_ID                      1
    XDG_RUNTIME_DIR                     /run/user/1000

Sway input config

input "type:touchpad" {
    # General configuration
    accel_profile adaptive
    click_method clickfinger
    tap enabled
    drag enabled
    # Scroll speed factor, for some reason is very high by default
    scroll_factor 0.3
}

The small scroll factor feels natural on my setup for all applications except Kitty.

kovidgoyal commented 7 months ago

https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.touch_scroll_multiplier

emilyyyylime commented 7 months ago

Thanks!