From e9250e647b3f388633c87a6e5e7a1540e13040a1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 14 Feb 2022 14:06:55 -0800 Subject: [PATCH] Fix mouse event handler for code actions indicator Co-Authored-By: Nathan Sobo --- crates/editor/src/editor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs index f2ce168a09559ea40fc283c1f5c7171f897e4c4a..3d28d7aa2cf8c56360925c513f2923173b1b23ca 100644 --- a/crates/editor/src/editor.rs +++ b/crates/editor/src/editor.rs @@ -2264,7 +2264,7 @@ impl Editor { enum Tag {} let style = (self.build_settings)(cx).style; Some( - MouseEventHandler::new::(0, cx, |_, _| { + MouseEventHandler::new::(cx.view_id(), cx, |_, _| { Svg::new("icons/zap.svg") .with_color(style.code_actions_indicator) .boxed()