Skip to content

Smooth pane drags, overlays, and hover motion - #5

Draft
rorohecker wants to merge 2 commits into
mainfrom
cursor/smooth-motion-d758
Draft

Smooth pane drags, overlays, and hover motion#5
rorohecker wants to merge 2 commits into
mainfrom
cursor/smooth-motion-d758

Conversation

@rorohecker

@rorohecker rorohecker commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Pane splitters used to ease on every drag frame, so the layout lagged the pointer and made scrolling/resizing feel drunk. This keeps tracking instant while dragging, and uses a short ease only for idle changes (double-click reset, preview open/close, simple-mode toolbar height).

Layout

  • Splitter duration is 0ms during drag (layout_dragging), ~200ms cubic ease when idle
  • Preview pane stays mounted while its width animates closed (preview_w > 0.5px + clip)
  • Preview user-width is not double-eased; only preview_w animates

Spawn-in

  • Overlays, dialogs, toasts, empty states, and the operations drawer fade and rise a few pixels into place instead of popping
  • Command palette drops in from above
  • Context menus use a shorter 90ms spawn so they still feel snappy
  • Selection action bar fades in over the toolbar

Chrome

  • Hover/press on buttons, tabs, chips, menus, toggles, and list headers: 90ms ease-out
  • File rows stay instant on select/hover so virtualized list recycling does not ghost the previous file during scroll

viewport-y is intentionally not animated.

Verified with cargo clippy --lib --locked --offline -- -D warnings and cargo check --locked --offline. This is a native Windows app, so motion was not GUI-tested on this Linux VM.

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 27, 2026 18:36
Keep splitter tracking instant while dragging, ease idle layout
changes, fade modal overlays in, and use consistent hover timing
without animating virtualized file-row highlights during scroll.

Co-authored-by: rsn597 <rsn597@my.utexas.edu>
Panels fade and ease in from a few pixels instead of popping.
Context menus stay snappy; the command palette drops in from above.

Co-authored-by: rsn597 <rsn597@my.utexas.edu>
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