From ec4be71f181138a0e95135bcd96618273aa2fcc5 Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 1 Oct 2023 18:55:47 +0200 Subject: Fix scrolling in /firm storage not working [no changelog] --- .../firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/moe/nea/firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt b/src/main/kotlin/moe/nea/firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt index 8251c92..d00a3a1 100644 --- a/src/main/kotlin/moe/nea/firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt +++ b/src/main/kotlin/moe/nea/firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt @@ -109,7 +109,7 @@ class StorageOverlayScreen() : Screen(Text.empty()) { verticalAmount: Double ): Boolean { scroll = - (scroll + horizontalAmount * StorageOverlay.config.scrollSpeed * + (scroll + verticalAmount * StorageOverlay.config.scrollSpeed * (if (StorageOverlay.config.inverseScroll) 1 else -1)).toInt() .coerceAtMost(lastRenderedHeight - height + 2 * StorageOverlay.config.margin).coerceAtLeast(0) return true -- cgit