Skip to content

Commit 24dfc22

Browse files
authored
Inverted horizontalChange when RTL Flow
The ManipulationDelta over X is not inverted when in RightToLeft FlowDirection. This was an unhandled bug? in UWP.
1 parent cb4dc66 commit 24dfc22

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/GridSplitter/GridSplitter.Events.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ protected override void OnManipulationDelta(ManipulationDeltaRoutedEventArgs e)
148148
var horizontalChange = e.Delta.Translation.X;
149149
var verticalChange = e.Delta.Translation.Y;
150150

151+
if (this.FlowDirection == FlowDirection.RightToLeft)
152+
{
153+
horizontalChange *= -1;
154+
}
155+
151156
if (_resizeDirection == GridResizeDirection.Columns)
152157
{
153158
if (HorizontalMove(horizontalChange))

0 commit comments

Comments
 (0)