Merge branch 'wip/coreyberla/gridview-rubberband' into 'main'

gridview: Fix rubberbanding from negative x coordinates

Closes nautilus#2492

See merge request GNOME/gtk!5030
This commit is contained in:
Benjamin Otte 2022-09-14 18:48:11 +00:00
commit b9b2ac2ce3

View File

@ -442,6 +442,8 @@ gtk_grid_view_get_position_from_allocation (GtkListBase *base,
n_items = gtk_list_base_get_n_items (base);
along = CLAMP (along, 0, gtk_grid_view_compute_total_height (self) - 1);
across = across < 0 ? 0 : across;
if (!gtk_grid_view_get_cell_at_y (self,
along,
&pos,