scrollIt.js icon indicating copy to clipboard operation
scrollIt.js copied to clipboard

data-index(indexLast) miss parseint

Open chloeleichen opened this issue 10 years ago • 0 comments

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.

chloeleichen avatar Apr 08 '15 02:04 chloeleichen