diff --git a/gpui/src/elements/list.rs b/gpui/src/elements/list.rs index 2e692f4a9914a31284d3fdbb850c798995ade25c..78f8c2316e32ffc3ab4679d1461ae78f7967f1c6 100644 --- a/gpui/src/elements/list.rs +++ b/gpui/src/elements/list.rs @@ -234,8 +234,9 @@ impl StateInner { todo!("still need to handle non-precise scroll events from a mouse wheel"); } - let scroll_max = self.heights.summary().height - height; - self.scroll_top = (self.scroll_top - delta.y()).max(0.0).min(scroll_max); + let scroll_max = (self.heights.summary().height - height).max(0.); + self.scroll_top = (self.scroll_top - delta.y()).max(0.).min(scroll_max); + cx.notify(); true