Skip to content

Commit 200b3d5

Browse files
authored
Merge pull request #530 from embedpdf/fix/hide-selection-group-rotation
Hide group menu during rotation
2 parents d41ae52 + cf72579 commit 200b3d5

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@embedpdf/plugin-annotation': patch
3+
---
4+
5+
Hide the group selection menu while group rotation is active. Previously the menu remained visible during rotation, which could overlap with rotation guide lines and the tooltip. This aligns the group selection box behavior with the single-annotation container, which already hides its menu during rotation.

packages/plugin-annotation/src/shared/components/group-selection-box.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ export function GroupSelectionBox({
551551
)}
552552

553553
{/* Group selection menu */}
554-
{groupSelectionMenu && (
554+
{groupSelectionMenu && !rotationActive && (
555555
<CounterRotate
556556
rect={{
557557
origin: {

packages/plugin-annotation/src/svelte/components/GroupSelectionBox.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@
582582
{/if}
583583

584584
<!-- Group selection menu -->
585-
{#if shouldShowMenu}
585+
{#if shouldShowMenu && !rotationActive}
586586
<CounterRotate
587587
rect={{
588588
origin: {

packages/plugin-annotation/src/vue/components/group-selection-box.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
</div>
8989

9090
<!-- Group selection menu -->
91-
<CounterRotate v-if="shouldShowMenu" :rect="menuRect" :rotation="rotation">
91+
<CounterRotate v-if="shouldShowMenu && !rotationActive" :rect="menuRect" :rotation="rotation">
9292
<template #default="{ rect, menuWrapperProps }">
9393
<!-- Priority 1: Render function prop (schema-driven) -->
9494
<component v-if="groupSelectionMenu" :is="renderGroupMenu(rect, menuWrapperProps)" />

0 commit comments

Comments
 (0)