mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-17 22:38:38 +01:00
Fix prev, next buttons in Stamps browser. #141
This commit is contained in:
parent
b7328e03ac
commit
a28121b166
@ -102,14 +102,14 @@ void LocalBrowserController::ClearSelection()
|
||||
|
||||
void LocalBrowserController::NextPage()
|
||||
{
|
||||
if(browserModel->GetPageNum()>1)
|
||||
browserModel->UpdateSavesList(browserModel->GetPageNum()-1);
|
||||
if(browserModel->GetPageNum() < browserModel->GetPageCount())
|
||||
browserModel->UpdateSavesList(browserModel->GetPageNum()+1);
|
||||
}
|
||||
|
||||
void LocalBrowserController::PrevPage()
|
||||
{
|
||||
if(browserModel->GetPageNum() <= browserModel->GetPageCount())
|
||||
browserModel->UpdateSavesList(browserModel->GetPageNum()+1);
|
||||
if(browserModel->GetPageNum()>1)
|
||||
browserModel->UpdateSavesList(browserModel->GetPageNum()-1);
|
||||
}
|
||||
|
||||
void LocalBrowserController::Update()
|
||||
|
@ -188,7 +188,7 @@ void LocalBrowserView::OnMouseWheel(int x, int y, int d)
|
||||
{
|
||||
if(!d)
|
||||
return;
|
||||
if(d>0)
|
||||
if(d<0)
|
||||
c->NextPage();
|
||||
else
|
||||
c->PrevPage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user