diff --git a/packages/edit-post/src/index.js b/packages/edit-post/src/index.js index 83999f7bf80041..486e64b32b5713 100644 --- a/packages/edit-post/src/index.js +++ b/packages/edit-post/src/index.js @@ -86,10 +86,10 @@ export function initializeEditor( id, postType, postId, settings, initialEdits ) const isIphone = window.navigator.userAgent.indexOf( 'iPhone' ) !== -1; if ( isIphone ) { - document.addEventListener( 'focusin', function( ) { - setTimeout( () => { + window.addEventListener( 'scroll', function( event ) { + if ( event.target === document ) { window.scrollTo( 0, 0 ); - }, 150 ); + } } ); }