-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix stuttering when starting to scroll a Game List #755
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,10 +191,6 @@ class IList : public GuiComponent | |
{ | ||
PowerSaver::setState(velocity == 0); | ||
|
||
// generate an onCursorChanged event in the stopped state when the user lets go of the key | ||
if(velocity == 0 && mScrollVelocity != 0) | ||
onCursorChanged(CURSOR_STOPPED); | ||
|
||
mScrollVelocity = velocity; | ||
mScrollTier = 0; | ||
mScrollTierAccumulator = 0; | ||
|
@@ -302,7 +298,7 @@ class IList : public GuiComponent | |
onScroll(absAmt); | ||
|
||
mCursor = cursor; | ||
onCursorChanged((mScrollTier > 0) ? CURSOR_SCROLLING : CURSOR_STOPPED); | ||
onCursorChanged((amt != 0) ? CURSOR_SCROLLING : CURSOR_STOPPED); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tell us more about this change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the intent of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks. |
||
} | ||
|
||
virtual void onCursorChanged(const CursorState& /*state*/) {} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to make sure that removing this didn't break anything else.
The call to
stopScrolling()
would also callonCursorChanged()
so that is where it would be called once, but believe there are other places that only calllistInput(0);