fix: update nonce on arrow position change

This commit is contained in:
Konstantinos Kaloutas
2023-05-24 14:44:48 +03:00
parent cd8e4b8d0b
commit 3ba55fa67b

View File

@@ -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'
@@ -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))
}
})