The scrolling distance now takes into account the effective height of the thumbnail (including exif if necessary)

This commit is contained in:
Thanatomanic 2018-07-01 13:47:42 +02:00
parent b5310d4bc6
commit 3d7772d0c6

View File

@ -501,8 +501,8 @@ void ThumbBrowserBase::configScrollBars ()
vscroll.get_adjustment()->set_upper (inH);
hscroll.get_adjustment()->set_lower (0);
vscroll.get_adjustment()->set_lower (0);
hscroll.get_adjustment()->set_step_increment (getThumbnailHeight());
vscroll.get_adjustment()->set_step_increment (getThumbnailHeight());
hscroll.get_adjustment()->set_step_increment (fd[0]->getEffectiveHeight()); // Is it safe enough to assume fd[0] is accessible? There seems to be no other way to get the _actual_ height of the thumbnail.
vscroll.get_adjustment()->set_step_increment (fd[0]->getEffectiveHeight());
hscroll.get_adjustment()->set_page_increment (iw);
vscroll.get_adjustment()->set_page_increment (ih);
hscroll.get_adjustment()->set_page_size (iw);