fixed the simplemenu scrolling bug, the scrolling will no longer jump to the final selection you made when scrolling down and up.

This commit is contained in:
omegablast2002@yahoo.com
2013-01-07 21:33:59 +00:00
parent b007190d98
commit 2aed88a44f

View File

@@ -267,6 +267,8 @@ bool SimpleMenu::CheckUserInput(JButton key)
n = mCount - 1;
// check to see if the user clicked
if( n-mCurr > this->maxItems+1 )
n = mCurr+1;//we don't want to increment pages at a time.
if (n != mCurr && mObjects[mCurr] != NULL && mObjects[mCurr]->Leaving(JGE_BTN_DOWN))
{
mCurr = n;