be-fe / iSlider

Smooth mobile touch slider for Mobile WebApp, HTML5 App, Hybrid App
http://be-fe.github.io/iSlider/
MIT License
1.66k stars 448 forks source link

元素数从1变成大于1时,初始化设置需要重新计算 #405

Open naifen00 opened 7 years ago

naifen00 commented 7 years ago

初始化时 data 只有一个元素 设置了isAutoplay = true,isLooping = true 这时isAutoplay和isLooping会自动变成false 当调用loadData 设置data 大于一个元素 isAutoplay 和 isLooping 还是false 需要手动设置 实例的 isAutoplay 和 isLooping 为true 然后 调用实例方法play

shinate commented 7 years ago

mark,这个近期优化下