Merge branch 'wip/carlosg/scrolledwindow-warning' into 'main'

gtkscrolledwindow: Do not try to doubly trigger deceleration

Closes #4730

See merge request GNOME/gtk!4536
This commit is contained in:
Matthias Clasen 2022-02-28 21:50:19 +00:00
commit b8cb15f28d

View File

@ -1052,7 +1052,8 @@ gtk_scrolled_window_decelerate (GtkScrolledWindow *scrolled_window,
if (priv->x_velocity != 0 || priv->y_velocity != 0 || overshoot)
{
gtk_scrolled_window_start_deceleration (scrolled_window);
if (priv->deceleration_id == 0)
gtk_scrolled_window_start_deceleration (scrolled_window);
priv->x_velocity = priv->y_velocity = 0;
}
}