Scrolling speed changed to height of thumbnail.

This works really well in the browser. Horizontal scrolling has the same speed, which works reasonably well too (unless you have images with abnormal aspect ratio's).
This commit is contained in:
Thanatomanic
2018-07-01 09:36:38 +02:00
parent 1d13724604
commit b5310d4bc6

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 (32);
vscroll.get_adjustment()->set_step_increment (32);
hscroll.get_adjustment()->set_step_increment (getThumbnailHeight());
vscroll.get_adjustment()->set_step_increment (getThumbnailHeight());
hscroll.get_adjustment()->set_page_increment (iw);
vscroll.get_adjustment()->set_page_increment (ih);
hscroll.get_adjustment()->set_page_size (iw);