From 41e7ff0ba2ddab0859a60299bec9d9368b9383fd Mon Sep 17 00:00:00 2001 From: alt0 Date: Thu, 18 Aug 2022 11:31:36 +0800 Subject: [PATCH] fix: filter lock shape in frame --- libs/components/board-sessions/src/translate-session.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/components/board-sessions/src/translate-session.ts b/libs/components/board-sessions/src/translate-session.ts index 96b2149139..59f227d866 100644 --- a/libs/components/board-sessions/src/translate-session.ts +++ b/libs/components/board-sessions/src/translate-session.ts @@ -111,7 +111,8 @@ export class TranslateSession extends BaseSession { Utils.boundsContain( TLDR.get_bounds(shap), TLDR.get_bounds(shapItem) - ) + ) && + !shapItem.isLocked ) { selectedShapes.push(shapItem); }