From 02c8bf72921e3496bce8320fc7edcb15f934c32e Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Mon, 9 May 2022 22:21:00 +1200 Subject: [PATCH] Change to smooth scrolling from auto --- client/homebrew/editor/editor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/homebrew/editor/editor.jsx b/client/homebrew/editor/editor.jsx index a6ceb5094..cdfa96f31 100644 --- a/client/homebrew/editor/editor.jsx +++ b/client/homebrew/editor/editor.jsx @@ -180,7 +180,7 @@ const Editor = createClass({ brewJump : function(targetPage=this.getCurrentPage()){ if(!window || this.isMeta()) return; - window.frames['BrewRenderer'].contentDocument.getElementById(`p${targetPage}`).scrollIntoView({ behavior: 'auto', block: 'start' }); + window.frames['BrewRenderer'].contentDocument.getElementById(`p${targetPage}`).scrollIntoView({ behavior: 'smooth', block: 'start' }); // const hashPage = (page != 1) ? `p${page}` : ''; // window.location.hash = hashPage; },