Skip to content

Commit

Permalink
Fix a bug in scrolling vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
LEOYoon-Tsaw committed Jun 26, 2024
1 parent ea0f7e4 commit 7deb3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/SquirrelPanel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ final class SquirrelPanel: NSPanel {
if abs(scrollDirection.dx) > abs(scrollDirection.dy) && abs(scrollDirection.dx) > 10 {
_ = inputController?.page(up: (scrollDirection.dx < 0) == vertical)
} else if abs(scrollDirection.dx) < abs(scrollDirection.dy) && abs(scrollDirection.dy) > 10 {
_ = inputController?.page(up: scrollDirection.dx > 0)
_ = inputController?.page(up: scrollDirection.dy > 0)
}
scrollDirection = .zero
// Mouse scroll wheel
Expand Down

0 comments on commit 7deb3a1

Please sign in to comment.