Skip to content

Refine notch hover timing and width scaling#208

Open
Lucker-QY wants to merge 5 commits into
wxtsky:mainfrom
Lucker-QY:codex/refine-hover-width-control
Open

Refine notch hover timing and width scaling#208
Lucker-QY wants to merge 5 commits into
wxtsky:mainfrom
Lucker-QY:codex/refine-hover-width-control

Conversation

@Lucker-QY
Copy link
Copy Markdown

Summary

  • Add a prehover phase for the notch hover interaction so quick mouse pass-through reverses the first-stage animation instead of opening the full panel.
  • Tune hover timing to expand after 0.5s and collapse 0.5s after mouse leave.
  • Change the collapsed width scale slider from 10% steps to 1% steps while keeping the existing 50%...150% range.

Details

The hover behavior now uses a small state machine (collapsed, prehover, expanded) to separate the immediate visual acknowledgement from the delayed full expansion. This makes accidental cursor passes feel lighter while preserving the existing expanded panel behavior.

The collapsed width scale range is centralized in NotchWidthScale, and the settings slider now uses the shared constants so the UI and width calculation stay aligned.

Validation

  • swift build -c release passes.
  • swift test --filter NotchPanelViewTests could not run in my local environment because this machine only has Command Line Tools selected and SwiftPM fails to import XCTest (no such module 'XCTest').

@Lucker-QY Lucker-QY marked this pull request as ready for review May 31, 2026 18:52
nguyenvanduocit pushed a commit to nguyenvanduocit/CodeIsland that referenced this pull request Jun 2, 2026
…-all (T-062)

New items from wxtsky/CodeIsland since May 31:
- T-061 (watch): PR wxtsky#208 notch hover 3-state machine + 1% width slider steps
- T-062 (investigate): issue wxtsky#212 cmux multi-session expand-all bug
- T-021 criteria updated: use 1% slider steps per PR wxtsky#208 pattern
- T-057 description updated: note issue wxtsky#210 user scenario
- vibeislandapp/vibe-island: no changes (still ba1c889)

https://claude.ai/code/session_01HRxeeXu7oCQ73VLVjRnaTz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants