Skip to content

Commit 0d25e56

Browse files
authored
Fixed back/forward mouse buttons in dual pane (#3465)
1 parent 60ae3d3 commit 0d25e56

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Files/Views/ModernShellPage.xaml.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,16 @@ private void AppSettings_SortOptionPreferenceUpdated(object sender, EventArgs e)
434434

435435
private void CoreWindow_PointerPressed(CoreWindow sender, PointerEventArgs args)
436436
{
437-
if (args.CurrentPoint.Properties.IsXButton1Pressed)
438-
{
439-
Back_Click();
440-
}
441-
else if (args.CurrentPoint.Properties.IsXButton2Pressed)
437+
if (IsCurrentInstance)
442438
{
443-
Forward_Click();
439+
if (args.CurrentPoint.Properties.IsXButton1Pressed)
440+
{
441+
Back_Click();
442+
}
443+
else if (args.CurrentPoint.Properties.IsXButton2Pressed)
444+
{
445+
Forward_Click();
446+
}
444447
}
445448
}
446449

0 commit comments

Comments
 (0)