scrollIt.js
scrollIt.js copied to clipboard
data-index(indexLast) miss parseint
I found that sometimes the keydown/keyup scroll does not work properly because indexLast is being treated as a string, causing active > indexLast. If we make lastIndex = parseInt($('[data-scroll-index]:last').attr('data-scroll-index')); that solves the problem.