Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 809a7fa

Browse files
committed
Fix some displaying issues
Signed-off-by: DeathsGun <deathsgun@protonmail.com>
1 parent 2669d73 commit 809a7fa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/kotlin/xyz/deathsgun/modmanager/gui/UpdateAllScreen.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class UpdateAllScreen(private val parentScreen: Screen) : Screen(TranslatableTex
2626
width - 50,
2727
height - 40,
2828
25,
29-
height - 40,
29+
height - 50,
3030
textRenderer.fontHeight + 4,
3131
this
3232
)
@@ -44,6 +44,10 @@ class UpdateAllScreen(private val parentScreen: Screen) : Screen(TranslatableTex
4444
super.render(matrices, mouseX, mouseY, delta)
4545
}
4646

47+
override fun mouseScrolled(mouseX: Double, mouseY: Double, amount: Double): Boolean {
48+
return updateList.mouseScrolled(mouseX, mouseY, amount)
49+
}
50+
4751
override fun tick() {
4852
updateList.tick()
4953
val pendingUpdates = getPendingUpdates()
@@ -57,6 +61,7 @@ class UpdateAllScreen(private val parentScreen: Screen) : Screen(TranslatableTex
5761
val update = pendingUpdates[i]
5862
updated.add(update.mod.id)
5963
updateList.add(update)
64+
updateList.scrollAmount = updateList.maxScroll.toDouble()
6065
}
6166
}
6267

0 commit comments

Comments
 (0)