Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f4da5af098183c54d35842d7fd446d8157ae1780
      
https://github.com/WebKit/WebKit/commit/f4da5af098183c54d35842d7fd446d8157ae1780
  Author: Tim Horton <[email protected]>
  Date:   2026-04-17 (Fri, 17 Apr 2026)

  Changed paths:
    M Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp
    M Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.h

  Log Message:
  -----------
  Use a simple deceleration curve for automation-originated momentum scrolls
https://bugs.webkit.org/show_bug.cgi?id=312613
rdar://175044018

Reviewed by Lily Spiniolas.

Automation wants repeatability and consistency, so instead of reading
the momentum deceleration curve off the local trackpad hardware, use
a simple exponential deceleration for automation-sourced wheel events.

* Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp:
(WebKit::MomentumEventDispatcher::dispatchSyntheticMomentumEvent):
(WebKit::MomentumEventDispatcher::didStartMomentumPhase):
(WebKit::MomentumEventDispatcher::buildOffsetTableWithInitialDelta):
(WebKit::MomentumEventDispatcher::computeNextDeltaSimple):
* Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.h:

Canonical link: https://commits.webkit.org/311514@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to