mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 05:54:05 +09:00
fix: some NaNs that can be caused by scroll bars
This commit is contained in:
@@ -42,9 +42,9 @@ class UIItemHorzSlider(
|
||||
// reset the scroll status
|
||||
handlePos = 0.0
|
||||
this.value = 0.0
|
||||
field = value
|
||||
field = value.coerceIn(12, width)
|
||||
|
||||
handleTravelDist = width - value
|
||||
handleTravelDist = width - field
|
||||
}
|
||||
|
||||
override val height = 24
|
||||
|
||||
Reference in New Issue
Block a user