mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
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:
commit
b8cb15f28d
@ -1052,7 +1052,8 @@ gtk_scrolled_window_decelerate (GtkScrolledWindow *scrolled_window,
|
|||||||
|
|
||||||
if (priv->x_velocity != 0 || priv->y_velocity != 0 || overshoot)
|
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;
|
priv->x_velocity = priv->y_velocity = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user