From 13014230c6fcce0046b11be32b21fda3b1837d6c Mon Sep 17 00:00:00 2001 From: Matheus Alves Date: Sun, 29 Oct 2023 21:00:56 -0300 Subject: [PATCH] fix: replace declaration marked as deprecated --- src/components/MegadraftEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();