Skip to content

fix(react): handle shared device canvas placement and fractional sizing - #10994

Closed
ibgreen wants to merge 2 commits into
masterfrom
codex/react-device-canvas
Closed

ibgreen wants to merge 2 commits into
masterfrom
codex/react-device-canvas

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 1, 2026

Copy link
Copy Markdown
Collaborator

For #10988

Background

A shared device can supply a detached canvas that differs from React's canvas placeholder. Mount it beside that placeholder so pointer events reach the intended container. Fractional Deck dimensions must also tolerate integer DOM sizing.

Change List

  • Mount device canvases using the supplied canvas parent
  • Tolerate subpixel rounding in React's WebGPU size check
  • Unit tests: fractional sizing and shared-device DOM placement

Independent of Brushing; targets master. Verified with lint and React/browser regressions.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-01T21:06:40.640485Z
We couldn’t complete this review. Comment @codex review to try again.
d99fb8b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@greptile-apps

greptile-apps Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

The PR puts a detached device canvas beside React’s canvas placeholder and allows subpixel differences when checking whether the canvas is ready.

  • A shared device canvas joins the supplied canvas's parent.
  • React shows map children when WebGPU sizes are within one pixel.

Reviews (1) · Last reviewed commit: "test: cover shared canvas placement with..." · Reviewed by Greptile

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