From b34cf7b34def9ef2664efd13ba30024699588634 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 16 Dec 2024 16:03:08 +0200 Subject: [PATCH] use scroll alignment --- src/app/browser/window/tab/item/page/content/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/browser/window/tab/item/page/content/text.rs b/src/app/browser/window/tab/item/page/content/text.rs index ea76f3c5..ee32c4c8 100644 --- a/src/app/browser/window/tab/item/page/content/text.rs +++ b/src/app/browser/window/tab/item/page/content/text.rs @@ -68,7 +68,7 @@ impl Text { let navigation = search.navigation.clone(); move |_| { if let Some((mut start, _)) = navigation.back() { - text_view.scroll_to_iter(&mut start, 0.0, false, 0.0, 0.0); + text_view.scroll_to_iter(&mut start, 0.0, true, 0.0, 0.0); } } }); @@ -78,7 +78,7 @@ impl Text { let navigation = search.navigation.clone(); move |_| { if let Some((mut start, _)) = navigation.forward() { - text_view.scroll_to_iter(&mut start, 0.0, false, 0.0, 0.0); + text_view.scroll_to_iter(&mut start, 0.0, true, 0.0, 0.0); } } });