Skip to content

Conversation

@sreya
Copy link
Contributor

@sreya sreya commented Nov 16, 2025

No description provided.

- Fix immediate scrolling: focus element immediately instead of delayed
- Add mouse move throttling (16ms) to prevent event loop blocking
- Make async link detection non-blocking
- Integrate hyperlink rendering into 60fps render loop (no forced renders)
- Fix viewport-aware coordinate conversion for scrolled content
- Fix click handler to detect links at click time (no race conditions)
- Fix CRITICAL scrollback indexing bug in Buffer.getLine
  - Was using inverted formula: scrollbackLength - y - 1
  - Correct formula: y (WASM offset 0 = oldest, not newest)
- Add comprehensive hyperlink test script (15 test scenarios)

Performance improvements:
- Removed expensive row scanning on every mouse move (~60 lines)
- Hyperlink hover now smooth even with many links on screen
- Scrolling works smoothly during hyperlink interaction
- All hyperlinks clickable at any scroll position

All tests pass (205/205)
- Replace 'Phase 3' comments with descriptive names
- Update all link detection and rendering comments
- Improve code readability without phase-based naming

No functional changes - only comment updates
@sreya sreya merged commit 125e976 into main Nov 16, 2025
5 checks passed
@sreya sreya deleted the xterm branch November 16, 2025 22:07
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