From d5fbe2b7d6af00680ccc206a14e2d2d8563642cd Mon Sep 17 00:00:00 2001 From: LookImEcho-Rick <62575172+LookImEcho-Rick@users.noreply.github.com> Date: Thu, 15 Oct 2026 22:02:18 -0500 Subject: [PATCH] Fix launcher data preview scroll isolation --- launcher/src/collection.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/launcher/src/collection.rs b/launcher/src/collection.rs index 550c465a4..d08ea6ce2 100644 --- a/launcher/src/collection.rs +++ b/launcher/src/collection.rs @@ -57,6 +57,8 @@ fn json_view(view: &(String, String), t: &Theme) -> Div { .id("data-json") .max_h(px(260.)) .overflow_y_scroll() + // GPUI lets wheel events reach scroll containers behind this one unless stopped. + .on_scroll_wheel(|_, _, cx| cx.stop_propagation()) .p(px(16.)) .rounded(px(theme::RADIUS_PLATE)) .bg(t.plate) @@ -186,6 +188,7 @@ impl Launcher { .flex_col() .bg(t.page.opacity(0.92)) .overflow_y_scroll() + .on_scroll_wheel(|_, _, cx| cx.stop_propagation()) // Taller than a small window: it scrolls, from the top, rather than shrinking. .child( div()