Merge branch 'bugfix/carousel' into 'develop'

first change

See merge request BPHV_MIPS/mvm_core_ui!450
This commit is contained in:
Suresh, Kamlesh Jain 2020-05-20 17:30:10 -04:00
commit 804faf53dd

View File

@ -173,7 +173,7 @@ open class Carousel: View {
numberOfPages = newMolecules.count numberOfPages = newMolecules.count
molecules = newMolecules molecules = newMolecules
if carouselModel?.loop ?? false && newMolecules.count > 2 { if carouselModel?.loop ?? false && newMolecules.count > 1 {
// Sets up the row data with buffer cells on each side (for illusion of endless scroll... also has one more buffer cell on each side in case we can peek that cell). // Sets up the row data with buffer cells on each side (for illusion of endless scroll... also has one more buffer cell on each side in case we can peek that cell).
loop = true loop = true