Skip to content

Commit

Permalink
fix: update nonce on arrow position change
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed May 24, 2023
1 parent cd8e4b8 commit 3ba55fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tldraw/packages/core/src/lib/TLPage/TLPage.ts
@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { deepEqual } from '@tldraw/core'
import { intersectRayBounds, TLBounds } from '@tldraw/intersect'
import Vec from '@tldraw/vec'
import { action, autorun, computed, makeObservable, observable, toJS, transaction } from 'mobx'
Expand Down Expand Up @@ -264,7 +265,7 @@ export class TLPage<S extends TLShape = TLShape, E extends TLEventMap = TLEventM
...fromDelta,
}
shapeChanged = true
this.getShapeById(nextShape.id)?.update(nextShape, false, true)
this.getShapeById(nextShape.id)?.update(nextShape, false, deepEqual(fromDelta?.handles, fromShape?.props.handles))
}
})

Expand Down

0 comments on commit 3ba55fa

Please sign in to comment.