Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 8, 2021
1 parent ce94f72 commit e0eb851
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/edit-site/src/components/block-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,9 @@ export default function BlockEditor( { setIsInserterOpen } ) {
const resizedCanvasStyles = useResizeCanvas( deviceType, true );
const ref = useRef();
const contentRef = useRef();
const editorStylesRef = useEditorStyles( settings.styles );

useMouseMoveTypingReset( ref );
// Ideally this should be moved to the place where the styles are applied (iframe)
const editorStylesRef = useEditorStyles( settings.styles );

// Allow scrolling "through" popovers over the canvas. This is only called
// for as long as the pointer is over a popover.
Expand Down Expand Up @@ -124,7 +123,7 @@ export default function BlockEditor( { setIsInserterOpen } ) {
[]
) }
>
<Canvas body={ contentRef } styles={ settings.styles } />
<Canvas body={ contentRef } />
</Iframe>
</div>
</BlockEditorProvider>
Expand Down

0 comments on commit e0eb851

Please sign in to comment.