Skip to content

Commit

Permalink
Revert "Hide Zoom Out inserter buttons when dragging (WordPress#65789)"
Browse files Browse the repository at this point in the history
This reverts commit 9a16053.
  • Loading branch information
huubl authored Oct 2, 2024
1 parent 0aaaa79 commit be987c7
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/block-editor/src/components/block-tools/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ function selector( select ) {
getSettings,
__unstableGetEditorMode,
isTyping,
isDragging,
} = unlock( select( blockEditorStore ) );
} = select( blockEditorStore );

const clientId =
getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
Expand All @@ -47,7 +46,6 @@ function selector( select ) {
hasFixedToolbar: getSettings().hasFixedToolbar,
isTyping: isTyping(),
isZoomOutMode: editorMode === 'zoom-out',
isDragging: isDragging(),
};
}

Expand All @@ -65,9 +63,10 @@ export default function BlockTools( {
__unstableContentRef,
...props
} ) {
const { clientId, hasFixedToolbar, isTyping, isZoomOutMode, isDragging } =
useSelect( selector, [] );

const { clientId, hasFixedToolbar, isTyping, isZoomOutMode } = useSelect(
selector,
[]
);
const isMatch = useShortcutEventMatch();
const {
getBlocksByClientId,
Expand Down Expand Up @@ -242,7 +241,7 @@ export default function BlockTools( {
name="__unstable-block-tools-after"
ref={ blockToolbarAfterRef }
/>
{ isZoomOutMode && ! isDragging && (
{ isZoomOutMode && (
<ZoomOutModeInserters
__unstableContentRef={ __unstableContentRef }
/>
Expand Down

0 comments on commit be987c7

Please sign in to comment.