mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 23:16:52 +08:00
Fixed #113 - scroll bouncing regardless of window size, fixes pull to refresh
This commit is contained in:
3
js/ext/angular/src/directive/ionicList.js
vendored
3
js/ext/angular/src/directive/ionicList.js
vendored
@ -84,6 +84,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
|
||||
isEditing: '=',
|
||||
deleteIcon: '@',
|
||||
reorderIcon: '@',
|
||||
hasPullToRefresh: '@',
|
||||
onRefresh: '&',
|
||||
onRefreshOpening: '&'
|
||||
},
|
||||
@ -106,7 +107,7 @@ angular.module('ionic.ui.list', ['ngAnimate'])
|
||||
var lv = new ionic.views.ListView({
|
||||
el: $element[0],
|
||||
listEl: $element[0].children[0],
|
||||
hasPullToRefresh: (typeof $scope.onRefresh !== 'undefined'),
|
||||
hasPullToRefresh: (typeof $scope.hasPullToRefresh !== 'false'),
|
||||
onRefresh: function() {
|
||||
$scope.onRefresh();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user