From 140b11a83533748af6a53bcc73a7e4b6f0bc3b60 Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sun, 18 May 2025 15:35:25 +0200 Subject: [PATCH] Fix regression of tab background highlighting issue after drag&drop Fix #16559 --- PowerEditor/src/WinControls/TabBar/TabBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index 92e419a45..3edfea264 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -1535,7 +1535,7 @@ void TabBarPlus::drawItem(DRAWITEMSTRUCT* pDrawItemStruct, bool isDarkMode) brushColour = colorActiveBg; } - if (_currentHoverTabItem == nTab && brushColour != colorActiveBg) // hover on a "darker" inactive tab + if (_currentHoverTabItem == nTab && brushColour != colorActiveBg && !_isDragging) // hover on a "darker" inactive tab { HLSColour hls(brushColour); brushColour = hls.toRGB4DarkModeWithTuning(15, 0); // make it lighter slightly