editor: Fix documentation tooltip reappearing after editor regains focus (#48924)
Closes #48922 When the editor regains focus, it internally triggers the mouse_moved logic again. This causes the hover documentation to be shown even if it was previously dismissed due to user editing. This change skips mouse_moved handling when the cursor is hidden, preventing unintended tooltip popups. [录屏 2026-02-11 19-04-14.webm](https://github.com/user-attachments/assets/ea9f9438-34bf-4771-bbc8-335e9ea59dd7) - [x] Tests or screenshots needed? - [x] Code Reviewed - [x] Manual QA Release Notes: - Fixed documentation tooltip reappearing after editor regains focus
This commit is contained in:
1 parent
19c8363a8e
commit
b165cd08ba
1 file changed
+3
-1
@@ -25038,7 +25038,9 @@ impl Editor {
|
||||
}
|
||||
});
|
||||
|
||||
if let Some(position_map) = self.last_position_map.clone() {
|
||||
if let Some(position_map) = self.last_position_map.clone()
|
||||
&& !self.mouse_cursor_hidden
|
||||
{
|
||||
EditorElement::mouse_moved(
|
||||
self,
|
||||
&MouseMoveEvent {
|
||||
|
||||
Reference in new issue
Block a user