md-editor-v3 4.17.1-0 → 4.17.1-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1477,8 +1477,7 @@ const scrollAuto = (pEle, cEle, codeMirrorUt) => {
1477
1477
  if (contentHeight <= scrollDomHeight || cEle.firstElementChild.clientHeight <= cEle.clientHeight) {
1478
1478
  return false;
1479
1479
  }
1480
- if (view2.state.doc.lines < ((_a = blockMap[blockMap.length - 1]) == null ? void 0 : _a.end)) {
1481
- buildMap();
1480
+ if (view2.state.doc.lines <= ((_a = blockMap[blockMap.length - 1]) == null ? void 0 : _a.end)) {
1482
1481
  return false;
1483
1482
  }
1484
1483
  if (e.target === pEle) {
@@ -1476,8 +1476,7 @@ const scrollAuto = (pEle, cEle, codeMirrorUt) => {
1476
1476
  if (contentHeight <= scrollDomHeight || cEle.firstElementChild.clientHeight <= cEle.clientHeight) {
1477
1477
  return false;
1478
1478
  }
1479
- if (view.state.doc.lines < ((_a = blockMap[blockMap.length - 1]) == null ? void 0 : _a.end)) {
1480
- buildMap();
1479
+ if (view.state.doc.lines <= ((_a = blockMap[blockMap.length - 1]) == null ? void 0 : _a.end)) {
1481
1480
  return false;
1482
1481
  }
1483
1482
  if (e.target === pEle) {