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,6 +292,9 @@ protected:
|
||||||
while (mScrollTier < mTierList.count - 1 &&
|
while (mScrollTier < mTierList.count - 1 &&
|
||||||
mScrollTierAccumulator >= mTierList.tiers[mScrollTier].length) {
|
mScrollTierAccumulator >= mTierList.tiers[mScrollTier].length) {
|
||||||
mScrollTierAccumulator -= mTierList.tiers[mScrollTier].length;
|
mScrollTierAccumulator -= mTierList.tiers[mScrollTier].length;
|
||||||
|
// 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;
|
++mScrollTier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue