From 90b4567c70ce947d9adbbeaf22525e9b8ab6237e Mon Sep 17 00:00:00 2001 From: Gabriele Date: Tue, 13 Feb 2018 15:00:24 +0100 Subject: [PATCH] floor/ceil of start/end index without this mod there is a problem when $scope.excess is an odd value: __startIndex and __endIndex are decimal values. --- src/angular-vs-repeat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/angular-vs-repeat.js b/src/angular-vs-repeat.js index f65da69..65b4abc 100644 --- a/src/angular-vs-repeat.js +++ b/src/angular-vs-repeat.js @@ -528,6 +528,9 @@ ); } + __startIndex = Math.floor(__startIndex); + __endIndex = Math.ceil(__endIndex); + _minStartIndex = Math.min(__startIndex, _minStartIndex); _maxEndIndex = Math.max(__endIndex, _maxEndIndex);