diff --git a/src/Files.App/UserControls/TabBar/TabBar.xaml.cs b/src/Files.App/UserControls/TabBar/TabBar.xaml.cs index 35c797bd6aa3..9ce963a44fff 100644 --- a/src/Files.App/UserControls/TabBar/TabBar.xaml.cs +++ b/src/Files.App/UserControls/TabBar/TabBar.xaml.cs @@ -204,7 +204,7 @@ private async void TabView_TabStripDrop(object sender, DragEventArgs e) { var item = tabStrip.ContainerFromIndex(i) as TabViewItem; - if (e.GetPosition(item).Y - item.ActualHeight < 0) + if (e.GetPosition(item).X - item.ActualWidth < 0) { index = i; break;