From f5fdd1138a1945cbe51fd606651a1ce03e86f336 Mon Sep 17 00:00:00 2001 From: XP Date: Sun, 3 Nov 2024 15:46:46 -0800 Subject: [PATCH] Fix toolbar not being easily draggable in one-column layout --- packages/frontend/src/scripts/components/sheet.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/components/sheet.ts b/packages/frontend/src/scripts/components/sheet.ts index 884a4413..80ebe764 100644 --- a/packages/frontend/src/scripts/components/sheet.ts +++ b/packages/frontend/src/scripts/components/sheet.ts @@ -1704,7 +1704,8 @@ export class GearPlanSheetGui extends GearPlanSheet { } }); dragTarget.addEventListener('pointerdown', (ev) => { - if (ev.target !== dragTarget) { + const altDragTarget = this.toolbarNode; + if (ev.target !== dragTarget && ev.target !== altDragTarget) { return; } ev.preventDefault();