From 12afe318960e128128da06f851aadcf6512535cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20PIERRE?= Date: Fri, 7 Feb 2025 17:51:33 +0100 Subject: [PATCH] Lighttable: fix monkey business on scroll backseat driving --- src/dtgtk/thumbtable.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/dtgtk/thumbtable.c b/src/dtgtk/thumbtable.c index 3e17fd447bed..b5c3b45b0c6b 100644 --- a/src/dtgtk/thumbtable.c +++ b/src/dtgtk/thumbtable.c @@ -304,12 +304,6 @@ static gboolean _thumbtable_update_scrollbars(dt_thumbtable_t *table) float lbefore = (table->offset - 1) / table->thumbs_per_row; if((table->offset - 1) % table->thumbs_per_row) lbefore++; - // if scrollbars are used, we can have partial row shown - if(table->thumbs_area.y != 0) - { - lbefore += -table->thumbs_area.y / (float)table->thumb_size; - } - // the number of line after (including the current one) int lafter = (nbid - table->offset) / table->thumbs_per_row; if((nbid - table->offset) % table->thumbs_per_row) lafter++;