commit 433945a2c7e55e2e361b18c76e8d1844838e174f
parent 1267c6b0ead221af0536ce633fba538ab265e784
Author: Botond Ballo <botond@mozilla.com>
Date: Wed, 3 Dec 2025 20:04:36 +0000
Bug 1999440 - Remove a dead code branch from EventStateManager::DoScrollText. r=hiro
The branch dates back to bug 1141884, before we supported scroll
snapping in the compositor.
The branch is dead now because the only caller of DoScrollText()
checks for mHandledByApz and does not call DoScrollText() in that
case.
Differential Revision: https://phabricator.services.mozilla.com/D272345
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp
@@ -3671,8 +3671,6 @@ void EventStateManager::DoScrollText(
case WidgetWheelEvent::SCROLL_DEFAULT:
if (isDeltaModePixel) {
mode = ScrollMode::Normal;
- } else if (aEvent->mFlags.mHandledByAPZ) {
- mode = ScrollMode::SmoothMsd;
} else {
mode = ScrollMode::Smooth;
}