Skip to content

Commit b0f2701

Browse files
authored
fix: increase contentSideHitWidth to prevent accidental window resize (manaflow-ai#2018)
Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com>
1 parent ef46867 commit b0f2701

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Sources/ContentView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,10 @@ enum SidebarResizeInteraction {
339339
// Keep a generous drag target inside the sidebar itself, but make the
340340
// terminal-side overlap very small so column-0 text selection still wins.
341341
static let sidebarSideHitWidth: CGFloat = 6
342-
static let contentSideHitWidth: CGFloat = 2
342+
// 4 pt matches the 4 pt padding used in GhosttySurfaceScrollView drop zone overlays
343+
// (dropZoneOverlayFrame). This prevents column-0 text near the leading edge from
344+
// accidentally triggering the sidebar resize when interacting with leftmost content.
345+
static let contentSideHitWidth: CGFloat = 4
343346

344347
static var totalHitWidth: CGFloat {
345348
sidebarSideHitWidth + contentSideHitWidth

0 commit comments

Comments
 (0)