[Fix] Image arrays going out of sync.
This commit is contained in:
parent
ca292cf791
commit
3877884730
@ -1667,6 +1667,8 @@ static void toolkit_listScroll(Widget* wgt, int direction) {
|
|||||||
|
|
||||||
/* Maximum. */
|
/* Maximum. */
|
||||||
hmax = h * (yelem - (int)(wgt->h / h));
|
hmax = h * (yelem - (int)(wgt->h / h));
|
||||||
|
if(hmax < 0.)
|
||||||
|
hmax = 0.;
|
||||||
|
|
||||||
/* Move. */
|
/* Move. */
|
||||||
wgt->dat.iar.pos -= direction * h;
|
wgt->dat.iar.pos -= direction * h;
|
||||||
|
Loading…
Reference in New Issue
Block a user