@codemirror/view 6.36.0 → 6.36.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 +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -9293,7 +9293,7 @@ class MatchDecorator {
|
|
|
9293
9293
|
let changeFrom = 1e9, changeTo = -1;
|
|
9294
9294
|
if (update.docChanged)
|
|
9295
9295
|
update.changes.iterChanges((_f, _t, from, to) => {
|
|
9296
|
-
if (to
|
|
9296
|
+
if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
|
|
9297
9297
|
changeFrom = Math.min(from, changeFrom);
|
|
9298
9298
|
changeTo = Math.max(to, changeTo);
|
|
9299
9299
|
}
|
package/dist/index.js
CHANGED
|
@@ -9288,7 +9288,7 @@ class MatchDecorator {
|
|
|
9288
9288
|
let changeFrom = 1e9, changeTo = -1;
|
|
9289
9289
|
if (update.docChanged)
|
|
9290
9290
|
update.changes.iterChanges((_f, _t, from, to) => {
|
|
9291
|
-
if (to
|
|
9291
|
+
if (to >= update.view.viewport.from && from <= update.view.viewport.to) {
|
|
9292
9292
|
changeFrom = Math.min(from, changeFrom);
|
|
9293
9293
|
changeTo = Math.max(to, changeTo);
|
|
9294
9294
|
}
|