Repository navigation
Stop text selection while dragging the expanded Mermaid viewer - #9
Conversation
Dragging to pan started a native text selection across the diagram's labels. The pan surface is now user-select: none. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y8zZi9uphvmprNJWq9UTWm
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The change supports panning without native text selection. No material regression requiring a fix was established. Pre-merge checks |
|
|
🚀 Preview Deployment Ready!
|
Requested by Adi · project thread
Before: dragging to pan the expanded Mermaid viewer highlighted the diagram's labels as a text selection.
After: dragging only pans; nothing gets selected.
How: the pan surface in
PanZoom.tsxgetsselect-none(user-select: none), which the SVG text inherits. Checked in the dev server with Playwright: the same drag selected"Bob\nAlice\nBob"before the change and nothing after.pnpm checkpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y8zZi9uphvmprNJWq9UTWm
Generated by Claude Code
Summary by CodeRabbit