[Fix] Silly mistake in image array scrolling.
This commit is contained in:
parent
9699b0ed10
commit
18e4d9088c
@ -1835,7 +1835,7 @@ static void toolkit_imgarrMove(Widget* iar, double ry) {
|
|||||||
|
|
||||||
hmax = h * (yelem - (int)(iar->h / h));
|
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. */
|
/* Does boundry checks. */
|
||||||
toolkit_listScroll(iar, 0);
|
toolkit_listScroll(iar, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user