Always stop propagation in div's scroll wheel listener (#9282)

Antonio Scandurra created

Fixes #9274

This fixes a bug that was preventing the editor hover popovers from
being scrolled with the trackpad.

Release Notes:

- N/A

Change summary

crates/gpui/src/elements/div.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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();
                     }
                 }
             });