fix: increase contentSideHitWidth to prevent accidental window resize (#2018)

Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com>
This commit is contained in:
BillionToken 2026-03-25 11:54:55 +08:00 committed by GitHub
parent 6d9c93732c
commit bc5b6442eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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