Skip to content
  • Georges Basile Stavracas Neto's avatar
    view: Add kinetic scrolling · 61f35d43
    Georges Basile Stavracas Neto authored
    Implement kinetic scrolling through a GtkGestureSwipe that is triggered
    after ending a drag. When triggered, it adds a tick callback to the view,
    and each tick calculates the new distance from the point where the drag
    end happened.
    
    The kinetic scrolling heuristic is copied and modified from GTK4.
    
    The deceleration rate is hardcoded for now, because the 'deceleration'
    property is stub, but that'll be fixed by the next commits.
    
    Fixes: GNOME/libshumate#7
    61f35d43