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

onslidechanged在火狐浏览器以及移动设备上无效 #350

Closed hwwgh555 closed 8 years ago

hwwgh555 commented 8 years ago

事件回调函数onslidechanged,在火狐浏览器以及移动设备上无效,只是在chrome浏览器(PC 版本 46.0.2490.86 m)测试有效 Event Callback--onslidechanged,it does not work in firefox(vresion 43.0.4) and mobile devices and only work in chrome(PC version 46.0.2490.86 m) 代码示例: var islider = new iSlider({ type: 'pic', data: list, dom: document.getElementById("wrapper"), isVertical: true, isLooping: true, animateType: 'card', onslidechange: function(idx) { if (this.isLooping === false) { if (idx === this.data.length - 1) { document.getElementById('iSlider-arrow').style.display = 'none'; } else { document.getElementById('iSlider-arrow').style.display = 'block'; } } }, onslidechanged:function(idx){ console.log("changed"+idx);//此回调函数在火狐(版本号43.0.4)以及移动设备下无效 } });

shinate commented 8 years ago

mark

shinate commented 8 years ago

2.1.5已修复,加入火狐系列浏览器的支持,修复了无法触发的问题