Fix list's scrollwheel direction

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max BrunsfeldandNathan Sobo committed 2021-09-01 15:36:22 -07:00
1 parent 6ef947ddb9
commit 388d731364
1 file changed
+1 -1
+1 -1
View File
@@ -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);