prosemirror-view 1.23.0 → 1.23.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.23.1 (2021-11-15)
2
+
3
+ ### Bug fixes
4
+
5
+ Restore accidentally reduced lookahead distance in view updating algorithm.
6
+
1
7
  ## 1.23.0 (2021-11-11)
2
8
 
3
9
  ### Bug fixes
package/dist/index.es.js CHANGED
@@ -1817,7 +1817,7 @@ ViewTreeUpdater.prototype.findNodeMatch = function findNodeMatch (node, outerDec
1817
1817
  }
1818
1818
  }
1819
1819
  } else {
1820
- for (var i$1 = this.index, e = Math.min(children.length, i$1 + 1); i$1 < e; i$1++) {
1820
+ for (var i$1 = this.index, e = Math.min(children.length, i$1 + 5); i$1 < e; i$1++) {
1821
1821
  var child = children[i$1];
1822
1822
  if (child.matchesNode(node, outerDeco, innerDeco) && !this.preMatch.matched.has(child)) {
1823
1823
  found = i$1;