mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Carousel fastScrolling is now disabled if there are less than three entries.
This commit is contained in:
parent
e94235ec63
commit
e96cbc52f9
|
@ -292,7 +292,10 @@ protected:
|
|||
while (mScrollTier < mTierList.count - 1 &&
|
||||
mScrollTierAccumulator >= mTierList.tiers[mScrollTier].length) {
|
||||
mScrollTierAccumulator -= mTierList.tiers[mScrollTier].length;
|
||||
++mScrollTier;
|
||||
// This is required for the carousel as the highest tier introduces weird behavior
|
||||
// if there are only two entries.
|
||||
if (!(mScrollTier > 0 && mEntries.size() < 3))
|
||||
++mScrollTier;
|
||||
}
|
||||
|
||||
// Actually perform the scrolling.
|
||||
|
|
Loading…
Reference in a new issue