Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

git: Fix hunk controls blocking scrolling (#31476)

Cole Miller4a577fff4a20
diff --git a/crates/agent/src/agent_diff.rs b/crates/agent/src/agent_diff.rs
index cb6934bb408..1ae8eddb155 100644
--- a/crates/agent/src/agent_diff.rs
+++ b/crates/agent/src/agent_diff.rs
@@ -699,7 +699,7 @@ fn render_diff_hunk_controls(
.rounded_b_md()
.bg(cx.theme().colors().editor_background)
.gap_1()
- .occlude()
+ .stop_mouse_events_except_scroll()
.shadow_md()
.children(vec![
Button::new(("reject", row as u64), "Reject")
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rs
index 4b3c46d4a67..2b1bfb09ed5 100644
--- a/crates/editor/src/editor.rs
+++ b/crates/editor/src/editor.rs
@@ -21496,7 +21496,7 @@ fn render_diff_hunk_controls(
.rounded_b_lg()
.bg(cx.theme().colors().editor_background)
.gap_1()
- .occlude()
+ .stop_mouse_events_except_scroll()
.shadow_md()
.child(if status.has_secondary_hunk() {
Button::new(("stage", row as u64), "Stage")