gtkkineticscroll: Do not reset velocity after stop()

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.
This commit is contained in:
Carlos Garnacho
2022-03-15 21:52:35 +01:00
parent adc4009354
commit 274e2b221f

View 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;
}
}