Skip to content

Commit 277273d

Browse files
fix: BROS-738: Disable shape drag when Pan tool is selected (#9283)
Co-authored-by: nick-skriabin <[email protected]>
1 parent f0c90ac commit 277273d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/libs/editor/src/regions/VectorRegion.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ const HtxVectorView = observer(({ item, suggestion }) => {
570570
const { x: offsetX, y: offsetY } = item.parent?.layerZoomScalePosition ?? { x: 0, y: 0 };
571571
const disabled = item.disabled || suggestion || store.annotationStore.selected.isLinkingMode;
572572
const selected = !disabled; // Invert disabled to selected for KonvaVector
573-
const isDisabled = item.locked; // Completely disable all interactions when locked
573+
const isDisabled = item.locked || item.parent?.getSkipInteractions(); // Completely disable all interactions when locked or Pan tool is active
574574

575575
// Wait for stage to be properly initialized
576576
if (!item.parent?.stageWidth || !item.parent?.stageHeight) {

0 commit comments

Comments
 (0)