fix failing tests from incorrect follow behavior
This commit is contained in:
parent
cffb064c16
commit
f6f41510d2
2 changed files with 12 additions and 2 deletions
|
@ -88,7 +88,7 @@ impl FollowableItem for Editor {
|
|||
}
|
||||
|
||||
if let Some(anchor) = state.scroll_top_anchor {
|
||||
editor.set_scroll_anchor(
|
||||
editor.set_scroll_anchor_internal(
|
||||
ScrollAnchor {
|
||||
top_anchor: Anchor {
|
||||
buffer_id: Some(state.buffer_id as usize),
|
||||
|
@ -98,6 +98,7 @@ impl FollowableItem for Editor {
|
|||
},
|
||||
offset: vec2f(state.scroll_x, state.scroll_y),
|
||||
},
|
||||
false,
|
||||
cx,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue