Fix scrolling in /firm storage not working
[no changelog]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user