Fixed an issue where using the trigger buttons did not reset any currently held buttons.

This commit is contained in:
Leon Styhre 2022-12-03 15:15:53 +01:00
parent 825d220be0
commit 4b03c90bf3

View file

@ -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<int>(mEntries.size()) - 1;
mScrollVelocity = 0;
mScrollTier = 0;
onCursorChanged(CursorState::CURSOR_STOPPED);
onScroll();
return true;