From 051d6e8b17c7b3cdf5bac37d8edf124ca64fe382 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 26 May 2006 03:31:30 +0000
Subject: [PATCH] Fix bug in mouse-clicking to select items inside lists which
 have been scrolled down.

---
 src/uifc/uifc32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index 3e410a9612..3c8e2d39e3 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));
-- 
GitLab