Merge branch 'wip/antoniof/dont-rubberband-on-drag-end' into 'main'

listbase: Don't start rubberband on ::drag-end

See merge request GNOME/gtk!4793
This commit is contained in:
Benjamin Otte 2022-06-14 03:45:55 +00:00
commit 7953092059

View File

@ -1740,8 +1740,12 @@ gtk_list_base_drag_end (GtkGestureDrag *gesture,
double offset_y,
GtkListBase *self)
{
GtkListBasePrivate *priv = gtk_list_base_get_instance_private (self);
gboolean modify, extend;
if (!priv->rubberband)
return;
gtk_list_base_drag_update (gesture, offset_x, offset_y, self);
get_selection_modifiers (GTK_GESTURE (gesture), &modify, &extend);
gtk_list_base_stop_rubberband (self, modify, extend);