From f16913400a737a2075fe6f4cbceec4782cab61c6 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 8 Dec 2025 10:36:55 +0100 Subject: [PATCH] title_bar: Fix clicking collaborators on windows not starting a follow (#44364) Release Notes: - Fixed left click not allowing to follow in collab title bar on windows --- crates/title_bar/src/collab.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/title_bar/src/collab.rs b/crates/title_bar/src/collab.rs index 16a0389efa46429d91c79f4eb1e99f62d01753b5..3af2927464134db1707fb7a93c7fb980fa466c92 100644 --- a/crates/title_bar/src/collab.rs +++ b/crates/title_bar/src/collab.rs @@ -182,7 +182,9 @@ impl TitleBar { this.children(current_user_face_pile.map(|face_pile| { v_flex() - .on_mouse_down(MouseButton::Left, |_, _, cx| cx.stop_propagation()) + .on_mouse_down(MouseButton::Left, |_, window, _| { + window.prevent_default() + }) .child(face_pile) .child(render_color_ribbon(player_colors.local().cursor)) })) @@ -217,6 +219,9 @@ impl TitleBar { .child(facepile) .child(render_color_ribbon(player_color.cursor)) .cursor_pointer() + .on_mouse_down(MouseButton::Left, |_, window, _| { + window.prevent_default() + }) .on_click({ let peer_id = collaborator.peer_id; cx.listener(move |this, _, window, cx| {