From b8fcc7947a895108a4dfca665e8197da260cc3c8 Mon Sep 17 00:00:00 2001 From: Filippo Ferrario <102259289+ferrariofilippo@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:30:52 +0100 Subject: [PATCH] Fix: Tab dropped into wrong position when moved between windows --- src/Files.App/UserControls/TabBar/TabBar.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;