<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Add kinetic scrolling"
   href="https://bugs.webkit.org/show_bug.cgi?id=155750#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Add kinetic scrolling"
   href="https://bugs.webkit.org/show_bug.cgi?id=155750">bug 155750</a>
              from <span class="vcard"><a class="email" href="mailto:aplazas&#64;igalia.com" title="Adrien Plazas &lt;aplazas&#64;igalia.com&gt;"> <span class="fn">Adrien Plazas</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=276397&amp;action=diff" name="attach_276397" title="WIP patch">attachment 276397</a> <a href="attachment.cgi?id=276397&amp;action=edit" title="WIP patch">[details]</a></span>
WIP patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=276397&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=276397&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/platform/ScrollAnimationKinetic.cpp:144
&gt; +    m_scrollHistory.append(ScrollEvent(orientation, step * multiplier, currentTime));</span >

What about letting ScrollAnimatorGtk handle the scrolling history and passing the computed inertia to ScrollAnimationKinetic when triggering inertial scrolling? This may help using the velocity values from the swipe gesture directly.

<span class="quote">&gt; Source/WebKit2/UIProcess/gtk/GestureController.cpp:218
&gt; +void GestureController::SwipeGesture::swipe(SwipeGesture* swipeGesture, double x, double y, GtkGesture* gesture)</span >

x and y (which should probably be named velocityX and velocityY) could (should?) be used to trigger inertial scrolling.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>