Skip to content

Fix Markdown copy buttons and scrollbar dragging - #699

Merged
Anton-Horn merged 3 commits into
mainfrom
fix/markdown-preview-interactions
Sep 22, 2026
Merged

Anton-Horn merged 3 commits into
mainfrom
fix/markdown-preview-interactions

Conversation

@Anton-Horn

Copy link
Copy Markdown
Contributor

Focus updates could replace Markdown elements between mouse-down and click, interrupting code-copy buttons and scrollbar drags. Keep the Markdown renderers stable so controls retain their DOM identity, including code blocks inside lists and quotes.

Code copying now uses the existing native clipboard bridge, shows success only after the write completes, and provides retry feedback on failure.

Validation:

  • 60 focused unit tests passed, including DOM/focus preservation and clipboard success/failure coverage.
  • 3 Electron tests passed for copying and horizontal scrollbar dragging in plain blocks, lists, and quotes at 65%, 100%, and 180% zoom.
  • Typecheck and production build passed. Targeted lint reported no errors (two existing EditorPanel warnings).

Only the five files implementing and testing this Markdown fix are included.

@Anton-Horn
Anton-Horn enabled auto-merge (squash) September 22, 2026 16:15
@Anton-Horn
Anton-Horn merged commit 1cb53fd into main Sep 22, 2026
3 checks passed
@Anton-Horn
Anton-Horn deleted the fix/markdown-preview-interactions branch September 22, 2026 16:22
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.

1 participant