mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 01:00:02 +00:00
use scroll alignment
This commit is contained in:
parent
bfe4048eb1
commit
b34cf7b34d
@ -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…
x
Reference in New Issue
Block a user