mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 22:14:05 +09:00
fix: some NaNs that can be caused by scroll bars
This commit is contained in:
@@ -136,9 +136,5 @@ class Comp(
|
||||
this.ratio = other.ratio
|
||||
}
|
||||
}
|
||||
|
||||
private fun Double.unNaN(d: Double): Double {
|
||||
return if (this.isNaN()) d else this
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user