diff --git a/src/toolkit.c b/src/toolkit.c index 0485e22..71812aa 100644 --- a/src/toolkit.c +++ b/src/toolkit.c @@ -1667,6 +1667,8 @@ static void toolkit_listScroll(Widget* wgt, int direction) { /* Maximum. */ hmax = h * (yelem - (int)(wgt->h / h)); + if(hmax < 0.) + hmax = 0.; /* Move. */ wgt->dat.iar.pos -= direction * h;