Browse Source

remove double call of pointer

sawhney17 3 years ago
parent
commit
5a264fad24
1 changed files with 0 additions and 1 deletions
  1. 0 1
      tldraw/packages/core/src/lib/TLHistory.ts

+ 0 - 1
tldraw/packages/core/src/lib/TLHistory.ts

@@ -64,7 +64,6 @@ export class TLHistory<S extends TLShape = TLShape, K extends TLEventMap = TLEve
     if (this.isPaused) return
     if (this.app.selectedTool.currentState.id !== 'idle') return
     if (this.pointer < this.stack.length - 1) {
-      this.pointer++
       this.pointer++
       const snapshot = this.stack[this.pointer]
       this.deserialize(snapshot)