0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

Change to smooth scrolling from auto

This commit is contained in:
G.Ambatte
2022-05-09 22:21:00 +12:00
parent b26ff9eb00
commit 02c8bf7292

View File

@@ -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;
},