mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-30 14:17:02 +00:00
Prevent mousedown on docs from being propagated to the editor
This commit is contained in:
parent
eb647be685
commit
3ba5dbb9e8
1 changed files with 3 additions and 0 deletions
|
@ -1274,6 +1274,9 @@ impl CompletionsMenu {
|
||||||
div.id("multiline_docs")
|
div.id("multiline_docs")
|
||||||
.max_h(max_height)
|
.max_h(max_height)
|
||||||
.overflow_y_scroll()
|
.overflow_y_scroll()
|
||||||
|
// Prevent a mouse down on documentation from being propagated to the editor,
|
||||||
|
// because that would move the cursor.
|
||||||
|
.on_mouse_down(MouseButton::Left, |_, cx| cx.stop_propagation())
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
let list = uniform_list(
|
let list = uniform_list(
|
||||||
|
|
Loading…
Reference in a new issue