Skip to content

feat: ease context popup selection movement - #175

Merged
Azganoth merged 1 commit into
mainfrom
feature/ease-context-popup-movement
Aug 4, 2026
Merged

feat: ease context popup selection movement#175
Azganoth merged 1 commit into
mainfrom
feature/ease-context-popup-movement

Conversation

@Azganoth

@Azganoth Azganoth commented Aug 4, 2026

Copy link
Copy Markdown
Owner

Summary

The context popup followed a changing selection in whole steps, which made repeated Shift+Arrow movement read as a series of placements rather than one object following the text.

  • Ease the Radix wrapper between positions produced by subsequent selection requests.
  • Cancel selection easing as soon as scrolling begins so the popup continues tracking its text immediately.
  • Keep the transition inactive during initial placement and while the popup holds focus, preserving opening and pinning behavior.
  • Disable the new movement when prefers-reduced-motion is active.
  • Record the user-facing change in the changelog.

Related Issue

Closes #172

Verification

Verified in EditorContextPopup.test.tsx: initial placement does not enable selection easing under React Strict Mode, later selection requests do, scrolling cancels it immediately, and a popup holding focus remains pinned.

Manually verified in the desktop app on Windows:

  1. Selection movement eases under repeated and held Shift+Arrow.
  2. Scrolling follows the anchored text immediately without lag.
  3. A newly opened popup does not animate from its parked position.
  4. A popup holding focus remains pinned.
  5. Disabling Windows animation effects makes repositioning immediate.

Notes

Reduced-motion handling applies only to the new repositioning transition. Existing popup open and close animations remain unchanged and out of scope.

@Azganoth Azganoth added the Feature New feature or request label Aug 4, 2026
@Azganoth Azganoth self-assigned this Aug 4, 2026
@Azganoth
Azganoth marked this pull request as ready for review August 4, 2026 02:10
@Azganoth
Azganoth merged commit 405c2bf into main Aug 4, 2026
2 checks passed
@Azganoth
Azganoth deleted the feature/ease-context-popup-movement branch August 4, 2026 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ease the context popup's movement when it repositions

1 participant