diff options
Diffstat (limited to 'src/main')
-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 |