Bug 234433 - [GTK][WPE] Kinetic scrolling doesn't work in overflow scrolling
Summary: [GTK][WPE] Kinetic scrolling doesn't work in overflow scrolling
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2021-12-17 06:41 PST by johnfactotum1
Modified: 2022-04-01 04:35 PDT (History)
6 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description johnfactotum1 2021-12-17 06:41:34 PST
WebKitGTK only does kinetic scrolling when scrolling the whole document, but not when scrolling other elements with `overflow: scroll`.
Comment 1 johnfactotum1 2021-12-20 02:53:07 PST
Another difference I noticed between page scrolling and overflow scrolling: when using arrow keys and PgUp/PgDn to scroll, page scrolling is animated (like `scroll-behavior: smooth`), but with overflow scrolling, it scrolls instantly without any animation.
Comment 3 Pablo Saavedra 2022-03-28 07:38:56 PDT
I can confirm this defect is also happens in WebKit WPE.Tested in:

* https://people.igalia.com/psaavedra/scroll_horizontal.html
* https://people.igalia.com/psaavedra/scroll.html
Comment 4 Alexander Mikhaylenko 2022-03-28 13:09:21 PDT
I can see kinetic scrolling with your samples with WebKitGTK at least.
Comment 5 Pablo Saavedra 2022-03-31 14:30:54 PDT
(In reply to Alexander Mikhaylenko from comment #4)
> I can see kinetic scrolling with your samples with WebKitGTK at least.
Not the case of WPE. Not at least using a build from trunk.
Comment 6 johnfactotum1 2022-03-31 21:55:17 PDT
Tested on Arch Linux, with webkit2gtk-4.1 and webkit2gtk-5.0 2.36.0.

Kinetic scrolling seems to be working with GTK 4. But overflow scrolling with PgUp/PgDn still has no animation.

On GTK 3, overflow scrolling is neither kinetic nor animated.
Comment 7 Alexander Mikhaylenko 2022-04-01 04:35:48 PDT
Huh. Didn't think it would depend on GTK3/4.

I see they are using different codepaths when creating a NativeWebWheelEvent though, I guess it has to do with that then.