From 2aed88a44f476dc079536ab41cf67057ff481d9c Mon Sep 17 00:00:00 2001 From: "omegablast2002@yahoo.com" Date: Mon, 7 Jan 2013 21:33:59 +0000 Subject: [PATCH] fixed the simplemenu scrolling bug, the scrolling will no longer jump to the final selection you made when scrolling down and up. --- projects/mtg/src/SimpleMenu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mtg/src/SimpleMenu.cpp b/projects/mtg/src/SimpleMenu.cpp index a4eab56d9..a66584c33 100644 --- a/projects/mtg/src/SimpleMenu.cpp +++ b/projects/mtg/src/SimpleMenu.cpp @@ -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;