From fc9f84446a3eda891d8eceff9a91d1dd1bdb763a Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 13 Mar 2024 15:48:22 +0100 Subject: [PATCH] Always stop propagation in div's scroll wheel listener (#9282) Fixes #9274 This fixes a bug that was preventing the editor hover popovers from being scrolled with the trackpad. Release Notes: - N/A --- crates/gpui/src/elements/div.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gpui/src/elements/div.rs b/crates/gpui/src/elements/div.rs index 1cd9ec567dcb68b8b71043d112fc94507aae7368..3b65dfb39bded7ed96568ff32c9e59aa602bc46c 100644 --- a/crates/gpui/src/elements/div.rs +++ b/crates/gpui/src/elements/div.rs @@ -1949,9 +1949,9 @@ impl Interactivity { scroll_offset.y += delta_y; } + cx.stop_propagation(); if *scroll_offset != old_scroll_offset { cx.refresh(); - cx.stop_propagation(); } } });