Hi,
We have upgraded our project from UE 4.27 to UE 5.3 and noticed the following behavior:
- When bUseMouseForTouch = true, buttons no longer respond to hover events.
- When bUseMouseForTouch = false, button hover functionality works correctly, but dragging to slide/scroll a ListView using the left mouse button stops working.
Upon investigation, we found that the following check was added in SlateApplication.cpp, which was not present in UE 4.27:
if (IsFakingTouchEvents() && !MouseEvent.IsMouseButtonDown(EKeys::LeftMouseButton))
{
// If we're faking touch events and the left mouse button is not down, do not process the mouse move event
return false;
}
Our requirement is to have both functionalities:
- Proper hover behavior for all buttons.
- The ability to slide/scroll a ListView using left mouse button drag
Is removing this conditional check in UE 5 the recommended solution, or is there an alternative approach to achieve both functionalities?
Please let us know if you need any clarification.
Thanks