winit icon indicating copy to clipboard operation
winit copied to clipboard

Inertial scrolling support in linux

Open thraen opened this issue 11 months ago • 4 comments

Description

It would be nice to have inertial scrolling for touch pads under linux.

Notably alacritty, which is using winit, is one of the few programs that lack inertial scrolling: https://github.com/alacritty/alacritty/issues/4175#top

The maintainers there argue, it should be a library/ system wide setting. At the same time, the libinput developer argues, that the input library lacks the necessary context to handle this.

Do you see a chance of it happening here?

Relevant platforms

No response

thraen avatar May 19 '25 23:05 thraen

If the user starts some inertial scrolling while the cursor is over a text box, and then moves the cursor over a dropdown while the inertial scrolling is still ongoing, should the inertial scrolling affect the dropdown?

Some people believe that the answer is no, and so they also believe that inertial scrolling cannot be implemented at any layer that doesn't understand the contents of the window. In the case of alacritty, that would be alacritty itself.

mahkoh avatar Jun 03 '25 15:06 mahkoh

Moving the pointer would probably anyways stop scrolling, but the general argument goes along those lines. The problem probably manifests most when pressing control in firefox while scrolling.

Personally, I am able to pull off the scroll-stop just in time before I start another maneuver quite reliably, so i don't quite understand why this had to be 'fixed'.

'fixed' of course implies completely breaking kinetic scroll for years - before it gets re-implemented in all affected programs.

thraen avatar Jun 03 '25 23:06 thraen

In any case, winit currently does not provide enough information for applications to implement this.

mahkoh avatar Jun 04 '25 05:06 mahkoh

yes. (sorry for the rant..)

do you think, winit should

  • provide necessary means for clients to implement it? or
  • or should it generate scroll events itself
  • or both?

thraen avatar Jun 04 '25 10:06 thraen