From bc5b6442eb57ddb951cb27bdea2cba981bc48110 Mon Sep 17 00:00:00 2001 From: BillionToken Date: Wed, 25 Mar 2026 11:54:55 +0800 Subject: [PATCH] fix: increase contentSideHitWidth to prevent accidental window resize (#2018) Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com> --- Sources/ContentView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/ContentView.swift b/Sources/ContentView.swift index 936472ef..03f44245 100644 --- a/Sources/ContentView.swift +++ b/Sources/ContentView.swift @@ -339,7 +339,10 @@ enum SidebarResizeInteraction { // Keep a generous drag target inside the sidebar itself, but make the // terminal-side overlap very small so column-0 text selection still wins. static let sidebarSideHitWidth: CGFloat = 6 - static let contentSideHitWidth: CGFloat = 2 + // 4 pt matches the 4 pt padding used in GhosttySurfaceScrollView drop zone overlays + // (dropZoneOverlayFrame). This prevents column-0 text near the leading edge from + // accidentally triggering the sidebar resize when interacting with leftmost content. + static let contentSideHitWidth: CGFloat = 4 static var totalHitWidth: CGFloat { sidebarSideHitWidth + contentSideHitWidth