When Use mouse for touch is enabled, the button fires onreleased event.
Here is what I investigated. Use mouse for touch enables gesture action in the button that leads to LongPress gesture fires so that the gesture sets focus on SViewport and changing focus from SButton to SViewport makes the button fire onrelease event.
This is not expected AFAIK since umg button do not have gesture event implemented in the editor so this can't be controlled. I expect if the user did not set gesture action for LongPress in the button, the gesture action should be bypassed and keep the focus on the button.
This is reproduced when Enable Gesture Recognizer is set to false in the Project Settings.
1) Crate a new widget blueprint WB
2) Make WB created and added to viewport at the time of beginplay
3) Add a button, bind onreleased with printstring
4) Run PIE, click the button and release after 2 secs
Expected=Result: onreleased fired right after mouse release
5) Enable Use mouse for touch
6) Try 4) again
Expected: onreleased fired right after mouse release
Result: onreleased is fired after 0.8 sec after click that the button is not actually released.
i have this problem UE4CC-Windows-58DC12AF4B97F057BD108FBFF569B2E9_0000
I am not able to find world outliner how to enable it?
How can i modify the param name in EQS node
Undefined sysmbol: typeinfo for AActor when cross-compile linux dedicated server on windows
An error occurred while trying to generate project files !?
How to achieve HLSL Multiple Render Target in Material blueprints?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-71782 in the post.
3 |
Component | UE - Editor - UI Systems - Slate |
---|---|
Affects Versions | 4.22, 4.21.2, 4.24.2 |
Target Fix | 4.27 |
Created | Mar 20, 2019 |
---|---|
Resolved | May 17, 2021 |
Updated | May 18, 2021 |