Unset follower's scroll anchor when editor is scrolled all the way up
This commit is contained in:
parent
570c987455
commit
0e920ad5e9
2 changed files with 5 additions and 3 deletions
|
@ -1037,9 +1037,9 @@ impl Editor {
|
|||
cx.notify();
|
||||
}
|
||||
|
||||
fn set_scroll_top_anchor(&mut self, anchor: Anchor, cx: &mut ViewContext<Self>) {
|
||||
fn set_scroll_top_anchor(&mut self, anchor: Option<Anchor>, cx: &mut ViewContext<Self>) {
|
||||
self.scroll_position = Vector2F::zero();
|
||||
self.scroll_top_anchor = Some(anchor);
|
||||
self.scroll_top_anchor = anchor;
|
||||
cx.emit(Event::ScrollPositionChanged);
|
||||
cx.notify();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue