From 894531d0e0a03d682e77280f5c728a6410dd1dcb Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 1 Sep 2021 15:36:22 -0700 Subject: [PATCH] Fix list's scrollwheel direction Co-Authored-By: Nathan Sobo --- gpui/src/elements/list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpui/src/elements/list.rs b/gpui/src/elements/list.rs index e1050ba26e540d65a20177fdc253e8198ec04ffe..a86d5d2f22216bdd3d92483d65abbd3e73d9ec9f 100644 --- a/gpui/src/elements/list.rs +++ b/gpui/src/elements/list.rs @@ -439,7 +439,7 @@ impl StateInner { } let scroll_max = (self.items.summary().height - height).max(0.); - let new_scroll_top = (self.scroll_top(scroll_top) + delta.y()) + let new_scroll_top = (self.scroll_top(scroll_top) - delta.y()) .max(0.) .min(scroll_max);