Skip to content

Commit

Permalink
Only moving to blocks should reset zoom out mode
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Oct 3, 2024
1 parent 7aa49bc commit 75a3112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function InserterMenu(
);

const handleZoomOut = ( newSelectedTab ) => {
if ( isZoomOutMode && newSelectedTab !== 'patterns' ) {
if ( isZoomOutMode && newSelectedTab === 'blocks' ) {
resetZoomLevel();
__unstableSetEditorMode( 'edit' );
} else if ( ! isZoomOutMode && newSelectedTab === 'patterns' ) {
Expand Down

0 comments on commit 75a3112

Please sign in to comment.