Skip to content

Commit

Permalink
Lighttable: fix monkey business on scroll backseat driving
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Feb 7, 2025
1 parent bf56ad8 commit 12afe31
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/dtgtk/thumbtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 12afe31

Please sign in to comment.