Skip to content

v32: two small speed-ups in the HTML overlay - #33

Merged
BPMData merged 1 commit into
mainfrom
claude/overlay-small-speedups
Oct 26, 2026
Merged

BPMData merged 1 commit into
mainfrom
claude/overlay-small-speedups

Conversation

@BPMData

@BPMData BPMData commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Two small follow-ups to v31's speed fix, both in the HTML overlay only:

  • Highlighter layer hides when it's empty. The overlay has a pen layer and a highlighter layer. The highlighter layer is now hidden whenever the part of the worksheet near the screen has no highlights, so the browser doesn't blend an empty layer over the page. It shows again as soon as a highlight is drawn. The PDF app already does this.
  • One position lookup per pen move. Each pen move used to ask the browser where the drawing layer is on screen twice for every pen sample; now it asks once per move.

Checked in headless Chrome on the Resume Day 2 worksheet at 1× and 2×: pen ink draws; the highlighter layer starts hidden, shows when you highlight, hides again after Undo; ink still lands in the right place after scrolling away and back.

The gain is small; drawing was already at full speed after v31.

🤖 Generated with Claude Code

- The highlighter layer is hidden while it has nothing on it, so the
  browser doesn't blend an empty layer over the worksheet. The PDF app
  already does this.
- Each pen move looks up where the drawing layer is on screen once,
  instead of twice per sample.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@BPMData
BPMData merged commit 1443307 into main Oct 26, 2026
1 check passed
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