From 7deb3a1c0a2786bc4969d0f01f3de89f2e9598ef Mon Sep 17 00:00:00 2001 From: LEO Yoon-Tsaw Date: Wed, 26 Jun 2024 07:46:41 -0400 Subject: [PATCH] Fix a bug in scrolling vertically --- sources/SquirrelPanel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/SquirrelPanel.swift b/sources/SquirrelPanel.swift index 5fef16c76..008ba640b 100644 --- a/sources/SquirrelPanel.swift +++ b/sources/SquirrelPanel.swift @@ -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