diff --git a/src/components/MegadraftEditor.js b/src/components/MegadraftEditor.js index a2a0fc15..d0b079e8 100644 --- a/src/components/MegadraftEditor.js +++ b/src/components/MegadraftEditor.js @@ -406,7 +406,7 @@ export default class MegadraftEditor extends Component { input && input.focus(); control.scrollIntoView({ block: "center" }); - window.scroll(0, window.pageYOffset - control.clientHeight / 2); + window.scroll(0, window.scrollY - control.clientHeight / 2); swapEffect();