Download

InputTouch thinks I released mouse button but I didn't

Hi all. I`m emulating touch (Use mouse for touch=true). Problem with InputTouch block. Very often, when I press the mouse button and do not release it, two events are triggered at once (“pressed” and “released”). When I release the button, the event “released” is triggered again, as it should be. At the end, i have 1 “pressed” and 2 “released” events. On rare occasions, everything works fine: 1 event when pressed and 1 when released. For example, if i will clicking 20 times, i will have correct behavior 5 times and 15 cases of wrong behavior. Mouse is ok. All other programs, windows etc work corrrectly.

UPD.
I found out at wrong cases “Released” triggered before “Pressed”, so i can hadle this situation with additional condition. But situation looks like a bug.

BP at the screenshot.

BP execution log:
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] Released
LogBlueprintUserMessages: [ABall_2] Pressed
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] true
LogBlueprintUserMessages: [ABall_2] Released
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false
LogBlueprintUserMessages: [ABall_2] false