Applied a fix for captureTimeout positive infinity not working as desired
This commit is contained in:
parent
854d706cbf
commit
90f1ff9e46
@ -188,7 +188,7 @@ export class UndoManager extends Observable {
|
||||
this.undoing = false
|
||||
this.redoing = false
|
||||
this.doc = /** @type {Doc} */ (this.scope[0].doc)
|
||||
this.lastChange = 0
|
||||
this.lastChange = Number.NEGATIVE_INFINITY;
|
||||
this.ignoreRemoteMapChanges = ignoreRemoteMapChanges
|
||||
/**
|
||||
* @param {Transaction} transaction
|
||||
@ -316,7 +316,7 @@ export class UndoManager extends Observable {
|
||||
*
|
||||
*/
|
||||
stopCapturing () {
|
||||
this.lastChange = 0
|
||||
this.lastChange = Number.NEGATIVE_INFINITY;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user