musicplayer: actually repositioning the ui

This commit is contained in:
minjaesong
2023-12-25 22:52:49 +09:00
parent 60bc9d54fd
commit 8cbd9dbfff
2 changed files with 9 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ abstract class UICanvas(
get() = mouseUp && Terrarum.mouseDown
private val _mouseUpThis: Boolean
get() = relativeMouseX in 0..width - 1 && relativeMouseY in 0..height - 1
get() = relativeMouseX in 0 until width && relativeMouseY in 0 until height
/** Called by the screen */
fun update(delta: Float) {