Skip to content
  • Alice Mikhaylenko's avatar
    swipe-tracker: Calculate velocity using scroll history · 689b8734
    Alice Mikhaylenko authored and Adrien Plazas's avatar Adrien Plazas committed
    In some cases we may get event with very low delta at the end of the swipe.
    While we can't completely ignore them, we can smooth them using a scroll
    history, similarly to what GTK kinetic scrolling does: keep track of the
    last 150ms of events, and sum their deltas when calculating the velocity.
    689b8734