mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 17:59:16 +01:00
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:
parent
ede290602d
commit
2a2eeeebbc
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user