gtkkineticscroll: Do not reset velocity after stop()
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 15 Mar 2022 20:52:35 +0000 (21:52 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 19 Mar 2022 11:35:11 +0000 (12:35 +0100)
We may want to fetch the last velocity obtained, even though we
preemptively called stop() on a kinetic scroll helper. Keep this
velocity so it can be queried later on.

gtk/gtkkineticscrolling.c

index 4eab5dcc84954b4bbf48f68719d65b8412c42aa0..8c697d54cdaa824a10115f9cf3538077720cbaba 100644 (file)
@@ -254,6 +254,5 @@ gtk_kinetic_scrolling_stop (GtkKineticScrolling *data)
     {
       data->phase = GTK_KINETIC_SCROLLING_PHASE_FINISHED;
       data->position = round (data->position);
-      data->velocity = 0;
     }
 }