Update safari workaround

This commit is contained in:
Roman Hotsiy 2016-12-25 17:15:01 +02:00
parent 90ae0448eb
commit 6a7f0238d3
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -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 // 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 // http://stackoverflow.com/questions/40692365/maintaining-scroll-position-while-inserting-elements-above-glitching-only-in-sa
if (isSafari && this.optionsService.options.$scrollParent === window) { 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; syncCount += 1;
} else { } else {
this.sortTasks(idx); this.sortTasks(idx);