darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

Set new active item with toCenter(0) after pushing new html and reload() #255

Open saxap opened 8 years ago

saxap commented 8 years ago

I'm try put new html content into sly and rebuild carousel with reload(), but when i call toCenter(0) - method works not as i expected, toCenter(0) not activate element with index=0. Check this fiddle: https://jsfiddle.net/6q3t8vpx/ Can somebody help me?

sergey-dev commented 8 years ago

I think this issue is related, but is more expanded: https://github.com/darsain/sly/issues/257