diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c index 3e410a96120e0c8a570d03c3a90e10b965ce4069..3c8e2d39e3d35931ec4200ea209d3fe5569a397a 100644 --- a/src/uifc/uifc32.c +++ b/src/uifc/uifc32.c @@ -973,7 +973,7 @@ int ulist(int mode, int left, int top, int width, int *cur, int *bar && mevnt.starty<=(s_top+top+optheight)-bbrdrwidth-1 && mevnt.event==CIOLIB_BUTTON_1_CLICK) { - (*cur)=(mevnt.starty)-(s_top+top+tbrdrwidth); + (*cur)=((mevnt.starty)-(s_top+top+tbrdrwidth))+(*cur-y+tbrdrwidth); if(bar) (*bar)=(*cur); y=top+tbrdrwidth+((mevnt.starty)-(s_top+top+tbrdrwidth));