Skip to content

Commit

Permalink
Hide toolbar when dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Nov 27, 2024
1 parent 589ea33 commit 28b8d88
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export function useShowBlockTools() {
getSettings,
__unstableGetEditorMode,
isTyping,
isDraggingBlocks,
} = unlock( select( blockEditorStore ) );

const clientId =
Expand All @@ -48,6 +49,7 @@ export function useShowBlockTools() {
! getSettings().hasFixedToolbar &&
! _showEmptyBlockSideInserter &&
hasSelectedBlock &&
! isDraggingBlocks() &&
! isEmptyDefaultBlock;

return {
Expand Down

0 comments on commit 28b8d88

Please sign in to comment.