From 4b03c90bf37072767b4c031bd15c9a0baf8effe9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 3 Dec 2022 15:15:53 +0100 Subject: [PATCH] Fixed an issue where using the trigger buttons did not reset any currently held buttons. --- es-core/src/components/IList.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/es-core/src/components/IList.h b/es-core/src/components/IList.h index dfa122410..158b24ef1 100644 --- a/es-core/src/components/IList.h +++ b/es-core/src/components/IList.h @@ -222,6 +222,8 @@ protected: { mLastCursor = mCursor; mCursor = 0; + mScrollVelocity = 0; + mScrollTier = 0; onCursorChanged(CursorState::CURSOR_STOPPED); onScroll(); return true; @@ -231,6 +233,8 @@ protected: { mLastCursor = mCursor; mCursor = static_cast(mEntries.size()) - 1; + mScrollVelocity = 0; + mScrollTier = 0; onCursorChanged(CursorState::CURSOR_STOPPED); onScroll(); return true;