From 6a7f0238d35e7b191713d13ea73e44163fd89db3 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sun, 25 Dec 2016 17:15:01 +0200 Subject: [PATCH] Update safari workaround --- lib/shared/components/LazyFor/lazy-for.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/components/LazyFor/lazy-for.ts b/lib/shared/components/LazyFor/lazy-for.ts index e0028689..94019cf8 100644 --- a/lib/shared/components/LazyFor/lazy-for.ts +++ b/lib/shared/components/LazyFor/lazy-for.ts @@ -92,7 +92,7 @@ export class LazyTasksService { // I know this is a bad practice to detect browsers but there is an issue in Safari only // http://stackoverflow.com/questions/40692365/maintaining-scroll-position-while-inserting-elements-above-glitching-only-in-sa if (isSafari && this.optionsService.options.$scrollParent === window) { - syncCount = this._tasks.findIndex(task => task.idx === idx); + syncCount = this._tasks.findIndex(task => task.flatIdx === idx); syncCount += 1; } else { this.sortTasks(idx);