Revert "Edit a condition of the scroll function in ClickBox.kt"

This reverts commit 0d2e67133c57bcf5c7cc4d9dfdd4e9208bb109f6.
This commit is contained in:
Username404-59 2021-05-06 18:35:44 +02:00
parent b2d957f2c9
commit 290f521c82
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class ClickBox(
if ((height != 8 || (supplied < 0)) && ((height != originalHeight) || (supplied > 0))) {
height -= supplied.toInt()
if (buttons.isNotEmpty()) (height / 8).let {
if (it in 1 downTo 0) barStage = it
if (it > 0) barStage = it
}
}
}