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:
@@ -267,6 +267,8 @@ bool SimpleMenu::CheckUserInput(JButton key)
|
|||||||
n = mCount - 1;
|
n = mCount - 1;
|
||||||
|
|
||||||
// check to see if the user clicked
|
// 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))
|
if (n != mCurr && mObjects[mCurr] != NULL && mObjects[mCurr]->Leaving(JGE_BTN_DOWN))
|
||||||
{
|
{
|
||||||
mCurr = n;
|
mCurr = n;
|
||||||
|
|||||||
Reference in New Issue
Block a user