WebKitGTK only does kinetic scrolling when scrolling the whole document, but not when scrolling other elements with `overflow: scroll`.
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.
I can confirm this defect is also happens in WebKit WPE.Tested in:
I can see kinetic scrolling with your samples with WebKitGTK at least.
(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.
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.
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.