From 2a2eeeebbcaca0a8973774ab1810af8666fda011 Mon Sep 17 00:00:00 2001 From: giantpune Date: Mon, 11 May 2009 11:39:21 +0000 Subject: [PATCH] Fixed the scrollbar better with the cursor when dragging it. Tested fine with 30, 60, 150, and 200 in the gamelist. --- source/libwiigui/gui_gamebrowser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/libwiigui/gui_gamebrowser.cpp b/source/libwiigui/gui_gamebrowser.cpp index 2fa87611..fa8d7795 100644 --- a/source/libwiigui/gui_gamebrowser.cpp +++ b/source/libwiigui/gui_gamebrowser.cpp @@ -529,9 +529,11 @@ void GuiGameBrowser::Update(GuiTrigger * t) t->wpad.ir.valid && gameCnt > pagesize) { scrollbarBoxBtn->SetPosition(width/2-18+7,0); - int position = t->wpad.ir.y - 50 - scrollbarBoxBtn->GetTop(); + //int position = t->wpad.ir.y - 50 - scrollbarBoxBtn->GetTop(); + int position = t->wpad.ir.y - 32 - scrollbarBoxBtn->GetTop(); - listOffset = (position * gameCnt)/180 - selectedItem; + //listOffset = (position * gameCnt)/180 - selectedItem; + listOffset = (position * gameCnt)/237 - selectedItem; if(listOffset <= 0) {