Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e7e61af4273f4683290b1c0f7320a2f00f355bcd
      
https://github.com/WebKit/WebKit/commit/e7e61af4273f4683290b1c0f7320a2f00f355bcd
  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:
  -----------
  [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

Reply via email to