Skip to content

Commit e9e9c33

Browse files
author
Vic
committed
Buffer updates caused additional issues
$apply changed to $applyAsync fixes issues.
1 parent f8b1b8e commit e9e9c33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui-scroll.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ angular.module('ui.scroll', [])
333333
let updates = updateDOM();
334334

335335
// We need the item bindings to be processed before we can do adjustment
336-
$scope.$apply(() => $timeout(() => {
336+
$scope.$applyAsync(() => {
337337

338338
// show elements after data binging has been done
339339
updates.inserted.forEach(w => w.element.removeClass('ng-hide'));
@@ -349,7 +349,7 @@ angular.module('ui.scroll', [])
349349
if (!pending.length) {
350350
adapter.calculateProperties();
351351
}
352-
}));
352+
});
353353
}
354354

355355
function adjustBufferAfterFetch(rid) {

0 commit comments

Comments
 (0)