mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-26 00:19:46 +00:00
Fix list's scrollwheel direction
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
82d1fb82d2
commit
894531d0e0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue