mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Don't send follower events from other panes (#4127)
Co-Authored-By: Mikayla <mikayla@zed.dev> [[PR Description]] Release Notes: - Fixed a bug where following could scroll incorrectly
This commit is contained in:
commit
9615eb825f
1 changed files with 7 additions and 5 deletions
|
@ -448,11 +448,13 @@ impl<T: Item> ItemHandle for View<T> {
|
|||
workspace.unfollow(&pane, cx);
|
||||
}
|
||||
|
||||
if item.add_event_to_update_proto(
|
||||
event,
|
||||
&mut *pending_update.borrow_mut(),
|
||||
cx,
|
||||
) && !pending_update_scheduled.load(Ordering::SeqCst)
|
||||
if item.focus_handle(cx).contains_focused(cx)
|
||||
&& item.add_event_to_update_proto(
|
||||
event,
|
||||
&mut *pending_update.borrow_mut(),
|
||||
cx,
|
||||
)
|
||||
&& !pending_update_scheduled.load(Ordering::SeqCst)
|
||||
{
|
||||
pending_update_scheduled.store(true, Ordering::SeqCst);
|
||||
cx.defer({
|
||||
|
|
Loading…
Reference in a new issue