File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ The widget automatically shows an *ActivityIndicator* in a *TableView*'s *Footer
24
24
25
25
```javascript
26
26
"dependencies": {
27
- "nl.fokkezb.infiniteScroll":"1.3"
27
+ "nl.fokkezb.infiniteScroll":"1.3.1 "
28
28
}
29
29
```
30
30
@@ -96,6 +96,8 @@ You can also manually trigger the loading state of the widget. You could use thi
96
96
| dettach | | Manually set the ` DONE ` state and remove the scroll listener
97
97
98
98
## Changelog
99
+ * 1.3.1:
100
+ * Fixes scroll-load-state loop with fast syncs.
99
101
* 1.3:
100
102
* Compatible with iOS7's new ` Ti.UI.Window.extendEdges ` via ` #isCenter ` .
101
103
* Allows you to hide the text until first load by calling ` show ` after that
Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ function state(_state, _message) {
52
52
$ . isCenter . add ( $ . isText ) ;
53
53
$ . isText . show ( ) ; // so it can be hidden on init via TSS
54
54
55
- loading = false ;
55
+ // small time-out to prevent scroll-load-state loop with fast syncs
56
+ setTimeout ( function ( ) {
57
+ loading = false ;
58
+ } , 25 ) ;
56
59
57
60
return true ;
58
61
}
Original file line number Diff line number Diff line change 3
3
"name" : " nl.fokkezb.infiniteScroll" ,
4
4
"description" : " Scroll down to the end of the TableView to load more." ,
5
5
"author" : " Fokke Zandbergen" ,
6
- "version" : " 1.3" ,
6
+ "version" : " 1.3.1 " ,
7
7
"copyright" :" Copyright (c) 2013" ,
8
8
"license" :" Apache License, Version 2.0" ,
9
9
"min-alloy-version" : " 1.0" ,
You can’t perform that action at this time.
0 commit comments