From 0fa4258c8b7bb1701a8253ea46aae0452cb2a083 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Mon, 16 May 2022 09:54:57 +0100 Subject: [PATCH] cancel mouse hover timer when right click --- lapce-ui/src/editor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lapce-ui/src/editor.rs b/lapce-ui/src/editor.rs index 4bbcb4a5..d637bd1a 100644 --- a/lapce-ui/src/editor.rs +++ b/lapce-ui/src/editor.rs @@ -210,6 +210,7 @@ fn mouse_down( editor_data.cancel_hover(); } MouseButton::Right => { + self.mouse_hover_timer = TimerToken::INVALID; self.right_click(ctx, editor_data, mouse_event, config); editor_data.cancel_completion(); editor_data.cancel_hover();