Closed sazanof closed 4 years ago
I tried to use you cool & lightweight scrollbal in my solution, ex xhr:
.................. for (var i = 0; i < data.features.length; i++) { var li = createLI(data.features[i]); ul.appendChild(li); } document.querySelector('#lists').innerHTML = ''; document.querySelector('#lists').appendChild(ul); SimpleScrollbar.initEl(document.querySelector('#lists')); ul.childNodes.forEach(function(el,index){ el.onclick = function(){ //console.log(el,i) console.log(index) clickOnLI(el,objectManager); } }) ............
But its do not want to refresh scroll. I did this fix, If it useful - it will be cool
Thanks for your contribution!
I tried to use you cool & lightweight scrollbal in my solution, ex xhr:
But its do not want to refresh scroll. I did this fix, If it useful - it will be cool