Sublime Forum

No trackpad momentum/inertial/kinetic scrolling

#1

Hi, I’m working with a Fedora 37 Gnome laptop, and noticed that Sublime Text not yet uses inertial touchpad scrolling. Instead it stops right after lifting your fingers.
Editors like Gnome Builder already have it.

When could we expect this feature?

1 Like

#2

Inertial scrolling works fine on my end with Gnome 3.36. It’s implemented by GTK (or underlying input libraries), so unless you’re using an old version of ST it should work.

1 Like

#3

With that I looked further into drivers. The problem is due to Gnome wayland using libinput (instead of Xorg synaptics), which leaves inertial scrolling up for applications to implement.

From https://wayland.freedesktop.org/libinput/doc/1.10.4/faq.html

Kinetic scrolling does not work

The X.Org synaptics driver implemented kinetic scrolling in the driver. It measures the scroll speed and once the finger leaves the touchpad the driver keeps sending scroll events for a predetermined time. This effectively provides for kinetic scrolling without client support but triggers an unfixable bug: the client cannot know that the events are from a kinetic scroll source. Scroll events in X are always sent to the current cursor position, a movement of the cursor after lifting the finger will send the kinetic scroll events to the new client, something the user does not usually expect. A key event during the kinetic scroll procedure causes side-effects such as triggering zoom.

libinput does not implement kinetic scrolling for touchpads. Instead it provides the libinput_event_pointer_get_axis_source function that enables callers to implement kinetic scrolling on a per-widget basis, see Scroll sources.

0 Likes

#4

Chiming in to report that inertial/kinetic scrolling is not working for me either. Running on Arch Linux GNOME 43.2 Wayland. As cout-neil said, this may be related to Wayland, however GNOME has defaulted to Wayland sessions for several years and inertial scrolling is well supported in other applications I use daily such as Firefox, GNOME Text Editor, GNOME Terminal, and Evolution.

I really do appreciate the efforts the Sublime team goes through to support their Linux users (the Arch pacman repo and aarch64 builds are awesome!), but finding out an app lacks support for this basic gesture after paying $99 is a bit of a let down.

Sublime Text 4
Stable Build 4143

0 Likes