Skip to content

Revert #643 (overlay generation guard)#646

Merged
jackgallant merged 1 commit into
mainfrom
claude/revert-overlay-guard
Jun 1, 2026
Merged

Revert #643 (overlay generation guard)#646
jackgallant merged 1 commit into
mainfrom
claude/revert-overlay-guard

Conversation

@jackgallant
Copy link
Copy Markdown
Contributor

Reverts #643 at the maintainer's request, returning the WebGL overlay code to its pre-change state. With #644 already reverted (#645), this restores svgoverlay.js/mriview.js to exactly how they were before the 2026-06-01 overlay-toggle work. The overlay toggle issues remain open for a future, browser-verified fix.

🤖 Generated with Claude Code

@jackgallant jackgallant merged commit 5be8a71 into main Jun 1, 2026
12 checks passed
@jackgallant jackgallant deleted the claude/revert-overlay-guard branch June 1, 2026 18:16
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the generation-based update tracking mechanism from the SVG overlay update function, which previously prevented stale textures from being committed during rapid layer toggles. Additionally, a debug console.log statement was introduced. The reviewer recommends removing this leftover debug log to avoid cluttering the console in production.

// of order, leaving a stale texture on the surface that disagrees with the switch state.
// Tag each bake with a generation id and commit only the most recent one.
var gen = (this._updateGen = (this._updateGen || 0) + 1);
console.log("Updating overlay!");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The console.log statement appears to be a leftover debug log. It is recommended to remove it to avoid cluttering the browser console in production environments.

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