mirror of
https://github.com/Redocly/redoc.git
synced 2024-12-03 13:53:43 +03:00
Update safari workaround
This commit is contained in:
parent
90ae0448eb
commit
6a7f0238d3
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user