mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 05:24:06 +09:00
LR click behav change/mouse clicks were sticky and causes unwanted behaviour on some fixture UIs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user