[Webkit-unassigned] [Bug 229697] keyboard scrolling spring damping animation doesn't finish and leads to endless flickering scrolling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 3 01:01:35 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=229697

--- Comment #14 from Fujii Hironori <Hironori.Fujii at sony.com> ---
Created attachment 462767

  --> https://bugs.webkit.org/attachment.cgi?id=462767&action=review

log

I added the following log. I pressed down arrow key and page down key in https://webkit.org/ .
The sprint went into divergent vibration.

diff --git a/Source/WebCore/platform/KeyboardScrollingAnimator.cpp b/Source/WebCore/platform/KeyboardScrollingAnimator.cpp
index 9863ebac3fd6..d604c3e15560 100644
--- a/Source/WebCore/platform/KeyboardScrollingAnimator.cpp
+++ b/Source/WebCore/platform/KeyboardScrollingAnimator.cpp
@@ -218,6 +218,7 @@ void KeyboardScrollingAnimator::updateKeyboardScrollPosition(MonotonicTime curre

     m_scrollAnimator.scrollToPositionWithoutAnimation(newPosition);

+    ALWAYS_LOG_WITH_STREAM(stream << "frameDuration:" << frameDuration << " newPosition:" << newPosition << " m_velocity:" << m_velocity);
     if (!m_scrollTriggeringKeyIsPressed && m_velocity.diagonalLengthSquared() < 1) {
         m_scrollController.didStopKeyboardScrolling();
         m_velocity = { };

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221003/44989f22/attachment.htm>


More information about the webkit-unassigned mailing list