Incorrect geometry for OnMouseMove event on Slider with RightToLeft flow direction

Hi,

We are currently in the process of adding RTL (right to left) support to our application and noticed that the slider behaves unexpectedly. It does not have RTL support which we fixed by just inverting the value we get from the slider if the current culture is right to left. And the second more critical issue is that clicking & moving the mouse does result in inconsistent behavior, clicking works as expected but moving the mouse results in a shifted slider position (slider is no longer under the mouse). After some investigation, the problem seems to be the geometry we receive in the FReply SSlider::OnMouseMove( const FGeometry& MyGeometry, const FPointerEvent& MouseEvent ) function. The geometry was aligned incorrectly with Left to Right flow direction instead of Right to Left, this seems to happen in FWeakWidgetPath::ToWidgetPath [Image Removed]because the code never goes through

[Image Removed]

and

[Image Removed]

which would set the correct flow direction. We are trying to fix this by explicitly using the Culture flow direction (instead of Inherit) in all our widgets but this does not seem to work everywhere, we would appreciate a workaround & fix in future unreal versions

[Attachment Removed]

Hello,

Thank you for reaching out.

Can you please send us a minimal test project that demonstrates the RTL issue?

The guide for test projects:

[Content removed]

[Attachment Removed]

I added a test project which showcases the problem as attachment to this post

[Attachment Removed]

Hello,

Thank you for reporting this. I can confirm this RTL issue can be reproduced as described in the latest CL, and have opened a bug report:

The tracker will be visible after it is approved internally at Epic Games and is publicly accessible.

If you have any further questions, please let us know.

[Attachment Removed]