aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-10-01 18:55:47 +0200
committernea <nea@nea.moe>2023-10-01 18:55:51 +0200
commitec4be71f181138a0e95135bcd96618273aa2fcc5 (patch)
tree7e5a4cd53963f3b1c8322565ba15a4d37f847293 /src/main
parent9e49de5c8bd482fd3ab8ef24bcff669764b6ffb3 (diff)
downloadFirmament-ec4be71f181138a0e95135bcd96618273aa2fcc5.tar.gz
Firmament-ec4be71f181138a0e95135bcd96618273aa2fcc5.tar.bz2
Firmament-ec4be71f181138a0e95135bcd96618273aa2fcc5.zip
Fix scrolling in /firm storage not working
[no changelog]
Diffstat (limited to 'src/main')
-rw-r--r--src/main/kotlin/moe/nea/firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt2
1 files changed, 1 insertions, 1 deletions
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