Skip to content

Commit 3ff763e

Browse files
committed
remove ScrollView from the IsOnTabBar fast path
1 parent a93759a commit 3ff763e

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/uia.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -633,10 +633,9 @@ bool IsOnTabBar(POINT pt) {
633633
}
634634

635635
// Fast path to avoid `GetParentElement` calls for common tab bar elements.
636-
if (IsAnyClassName(
637-
pointed,
638-
{L"HorizontalTabStripRegionView", L"TabStrip::TabDragContextImpl",
639-
L"TabStripControlButton", L"FrameGrabHandle", L"ScrollView"})) {
636+
if (IsAnyClassName(pointed, {L"HorizontalTabStripRegionView",
637+
L"TabStrip::TabDragContextImpl",
638+
L"TabStripControlButton", L"FrameGrabHandle"})) {
640639
return true;
641640
}
642641
return FindParentByClass(automation, pointed,

0 commit comments

Comments
 (0)