Branch: refs/heads/webkitglib/2.52
Home: https://github.com/WebKit/WebKit
Commit: 5e86e1536656ee4b4616d478dc27cc90af13e130
https://github.com/WebKit/WebKit/commit/5e86e1536656ee4b4616d478dc27cc90af13e130
Author: Vitaly Dyachkov <[email protected]>
Date: 2026-03-16 (Mon, 16 Mar 2026)
Changed paths:
M
Source/WebCore/page/scrolling/coordinated/ScrollingTreeScrollingNodeDelegateCoordinated.cpp
M
Source/WebCore/page/scrolling/coordinated/ScrollingTreeScrollingNodeDelegateCoordinated.h
Log Message:
-----------
Cherry-pick 309315@main (e7e61af4273f).
https://bugs.webkit.org/show_bug.cgi?id=309252
[WPE][GTK] Scrolling slowly with finger doesn't work
https://bugs.webkit.org/show_bug.cgi?id=309252
Reviewed by Carlos Garcia Campos.
When scrolling slowly with touch input, the delta values can be very
small. Rounding these small delta values to integers can cause the
scroll position to not update, which can make the scrolling feel
unresponsive.
This patch adds overridden `adjustedScrollPosition()` method of the
`ScrollingTreeScrollingNodeDelegateCoordinated` to return the original
position without rounding on WPE and GTK, allowing for smoother
scrolling even with small delta values.
*
Source/WebCore/page/scrolling/coordinated/ScrollingTreeScrollingNodeDelegateCoordinated.cpp:
(WebCore::ScrollingTreeScrollingNodeDelegateCoordinated::adjustedScrollPosition
const):
*
Source/WebCore/page/scrolling/coordinated/ScrollingTreeScrollingNodeDelegateCoordinated.h:
Canonical link: https://commits.webkit.org/309315@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications