Description
An InputBinding can have a UIButton assigned. When you connect .Pressed and .Released to the InputAction, it will trigger when you click on the button with the mouse.
However, if you click the button and keep holding down the Mouse Button and then, move out of the button, (and then release the mouse button it), the UIButton will not trigger .Released.
It will then only trigger .Released if the window is focused out or the UIButton is pressed again.
Re-production Steps
See re-production place file in Private Message
InputBinding.UIButtonassign it to a button and then connect the.Pressedand.ReleasedEvents.- Move your cursor to the button
- Hold down Mouse1
- move out of the button
- Release Mouse1
Expected Result
That the button triggers .Released if the Mouse/Touch, etc. that triggered it, is released.
Or well… either one can use .MouseLeave and force change the state to “Released”…
or leaving the button (not in a way that it would interfer with multiple taps on mobile) would trigger Released.
Actual Result
When you move out of the button while it is pressed down, and then release the mouse button. The button will get stuck in .Pressed.
A private message is associated with this bug report