cancel mouse hover timer when right click

This commit is contained in:
Dongdong Zhou 2022-05-16 09:54:57 +01:00
parent 55e2ac585a
commit 0fa4258c8b
1 changed files with 1 additions and 0 deletions

View File

@ -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();