Skip to content

Commit

Permalink
3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ximan committed Sep 2, 2015
1 parent e7fff2e commit c9eb740
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 3.4.1(150902)

* 修复不连续滚动时懒加载bug

### 3.4.0(150820)

* 支持多个轮播相同class调用
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,9 @@ $('.element').swipeSlide({

## 最新版本

### 3.4.0(150820)
### 3.4.1(150902)

* 支持多个轮播相同class调用
* 修改callback仅滚动时才回调(重要)
* 增加firstCallback页面加载回调
* 所有回调增加第三个参数me
* 修复点击触发callback回调bug
* 修复不连续滚动时懒加载bug

[所有更新日志](Changelog.md)

Expand Down
12 changes: 10 additions & 2 deletions js/swipeSlide.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* swipeSlide
* http://ons.me/500.html
* 西门
* 3.4.0(150820)
* 3.4.1(150902)
*/
;(function(win,$){
'use strict';
Expand Down Expand Up @@ -96,7 +96,15 @@
fnLazyLoad(me, 1);
}
}else{
fnLazyLoad(me, me._index+1 == me._liLength ? me._liLength-2 : me._index+1);
// 如果不连续滚动
if(me._index == 0){
fnLazyLoad(me, me._index+1);
}else if(me._index+1 == me._liLength){
fnLazyLoad(me, me._index-1);
}else{
fnLazyLoad(me, me._index+1);
fnLazyLoad(me, me._index-1);
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions js/swipeSlide.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c9eb740

Please sign in to comment.