diff options
author | nea <nea@nea.moe> | 2023-10-01 18:55:47 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-10-01 18:55:51 +0200 |
commit | ec4be71f181138a0e95135bcd96618273aa2fcc5 (patch) | |
tree | 7e5a4cd53963f3b1c8322565ba15a4d37f847293 /src/main/kotlin/moe | |
parent | 9e49de5c8bd482fd3ab8ef24bcff669764b6ffb3 (diff) | |
download | firmament-ec4be71f181138a0e95135bcd96618273aa2fcc5.tar.gz firmament-ec4be71f181138a0e95135bcd96618273aa2fcc5.tar.bz2 firmament-ec4be71f181138a0e95135bcd96618273aa2fcc5.zip |
Fix scrolling in /firm storage not working
[no changelog]
Diffstat (limited to 'src/main/kotlin/moe')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/features/inventory/storageoverlay/StorageOverlayScreen.kt | 2 |
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 |