Skip to content

Commit

Permalink
caro_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
neodigm committed Aug 27, 2023
1 parent 1ed7c5e commit b766e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/neodigm55__v3_0.js
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ class NeodigmCarousel {
case "prev": // loops
//if( oState.nIdx != 1 ) oState.nIdx--
console.log( " ~~~ nIdx | " + oState.nIdx + " | " + oState.aTabCntr.length )
if( oState.nIdx > oState.aTabCntr.length ) { oState.nIdx-- }else{ oState.nIdx = oState.aTabCntr.length }
if( oState.nIdx != 1 ) { oState.nIdx-- }else{ oState.nIdx = oState.aTabCntr.length }
break;
case "random":
oState.nIdx = neodigmUtils.f02x( oState.aTabCntr.length ) + 1
Expand Down

0 comments on commit b766e1d

Please sign in to comment.