mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-20 02:47:34 +03:00
Fix editor stealing click events from copy-error button
Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
parent
600b5c65e9
commit
74f3366f42
@ -388,7 +388,9 @@ impl EditorElement {
|
|||||||
let mut click_count = event.click_count;
|
let mut click_count = event.click_count;
|
||||||
let modifiers = event.modifiers;
|
let modifiers = event.modifiers;
|
||||||
|
|
||||||
if gutter_bounds.contains(&event.position) {
|
if cx.default_prevented() {
|
||||||
|
return;
|
||||||
|
} else if gutter_bounds.contains(&event.position) {
|
||||||
click_count = 3; // Simulate triple-click when clicking the gutter to select lines
|
click_count = 3; // Simulate triple-click when clicking the gutter to select lines
|
||||||
} else if !text_bounds.contains(&event.position) {
|
} else if !text_bounds.contains(&event.position) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user