prevent things getting weird during resizing

David Sheldrick 2024-05-10 13:42:35 +01:00
rodzic 397296f5c2
commit d7944b9349
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -47,6 +47,11 @@ export class TextBindingUtil extends BindingUtil<TLTextBinding> {
shapeAfter,
binding,
}: BindingOnShapeChangeOptions<TLTextBinding>): void {
if (
!this.editor.isIn('select.translating') ||
!this.editor.getSelectedShapeIds().includes(shapeAfter.id)
)
return
const edgeSlop = 25
if (shapeBefore.x !== shapeAfter.x || shapeBefore.y !== shapeAfter.y) {
const textShapeTransform = this.editor.getShapePageTransform(shapeAfter)