Fixed syncscroll might have duplicated and wrong scrollMap if editor not shown
This commit is contained in:
parent
a2fbafb6aa
commit
8af7841de3
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ function buildMapInner(syncBack) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
t = _lineHeightMap[t];
|
t = _lineHeightMap[t];
|
||||||
if (t !== 0) {
|
if (t !== 0 && t !== nonEmptyList[nonEmptyList.length - 1]) {
|
||||||
nonEmptyList.push(t);
|
nonEmptyList.push(t);
|
||||||
}
|
}
|
||||||
_scrollMap[t] = Math.round($el.offset().top + offset - 10);
|
_scrollMap[t] = Math.round($el.offset().top + offset - 10);
|
||||||
|
|
Loading…
Reference in a new issue