mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use scroll alignment
This commit is contained in:
parent
bfe4048eb1
commit
b34cf7b34d
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue