Fixed the scrollbar better with the cursor when dragging it. Tested fine with 30, 60, 150, and 200 in the gamelist.

This commit is contained in:
giantpune 2009-05-11 11:39:21 +00:00
parent ede290602d
commit 2a2eeeebbc

View File

@ -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)
{