You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: JavaCodeVisualizer_VersionHistory.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Java Code Visualizer — Version History
2
2
3
-
## Development Timeline (May 23–24, 2026)
3
+
## Development Timeline (May 23–28, 2026)
4
4
5
5
This document lists every version of `JavaCodeVisualizer.jsx` produced during the iterative development process, along with the changes made in each version.
6
6
@@ -146,7 +146,7 @@ Changed the code font to Fira Code and increased size.
146
146
147
147
---
148
148
149
-
### v11.0 (Final) — Cursor Alignment Fix
149
+
### v11.0 — Cursor Alignment Fix
150
150
**Lines:**~2,931 | **Date:** May 24, 2026
151
151
152
152
Fixed cursor misalignment after font size increase.
@@ -158,6 +158,23 @@ Fixed cursor misalignment after font size increase.
Fixed word-level copy not working — selecting a single word was highlighting the entire line and copying the full line content.
165
+
166
+
-**Root cause** — The custom line-level selection system (introduced in v6.0) highlighted entire lines when any text on that line was selected. The native textarea `::selection` was hidden (`background: transparent`), so users couldn't see or copy individual words
167
+
-**Native textarea selection restored** — `::selection` changed from `transparent` back to `rgba(56,139,253,0.3)` with `color: transparent`, enabling proper character/word-level selection highlighting
168
+
-**Custom selection system removed:**
169
+
- Removed `selRange` state and `handleSelect` callback
170
+
- Removed `isSelected` variable from overlay line rendering
171
+
- Removed `onSelect`, `onMouseUp`, `onKeyUp` event handlers from textarea
172
+
- Removed line-level selection background color logic from overlay
173
+
-**Why this works now** — The cursor alignment fixes from v11.0 (ligature disabling, font sync, explicit font rendering) mean the native textarea selection now aligns properly with the visible overlay code, making the custom system unnecessary
174
+
- Double-click to select a word, drag to select partial text, and Cmd/Ctrl+C copies exactly what is selected
175
+
176
+
---
177
+
161
178
## Summary Table
162
179
163
180
| Version | Key Change | Lines |
@@ -173,3 +190,4 @@ Fixed cursor misalignment after font size increase.
173
190
| v9.0 | Java logo icon (base64 embedded) |~2,860 |
0 commit comments