diff --git a/src/toolkit.c b/src/toolkit.c index 71812aa..2239d8c 100644 --- a/src/toolkit.c +++ b/src/toolkit.c @@ -1834,8 +1834,8 @@ static void toolkit_imgarrMove(Widget* iar, double ry) { yelem = (int)iar->dat.iar.nelements / xelem + 1; hmax = h * (yelem - (int)(iar->h / h)); - - iar->dat.iar.pos -= (ry * (iar->w - 30.) / hmax) / 2.; + + iar->dat.iar.pos -= ry*hmax / (iar->h - 30.); /* Does boundry checks. */ toolkit_listScroll(iar, 0);