LR click behav change/mouse clicks were sticky and causes unwanted behaviour on some fixture UIs

This commit is contained in:
minjaesong
2024-03-05 05:21:17 +09:00
parent 0090cc7d40
commit 5b5534bcb9
27 changed files with 206 additions and 181 deletions

View File

@@ -155,6 +155,11 @@ abstract class UIItem(var parentUI: UICanvas, val initialX: Int, val initialY: I
}
mouseOverCall?.updateImpl(delta)
if (mouseOverCall?.openingClickLatched == true && !Terrarum.mouseDown) {
mouseOverCall?.openingClickLatched = false
// App.printdbg(this, "UIItem.update Unlatching openingClick of mouseOverCall")
}
mouseUpListener.invoke(itemRelativeMouseX, itemRelativeMouseY)
}
else {