Skip to content

Conversation

Zyie
Copy link
Member

@Zyie Zyie commented Jul 15, 2025

Fixes: #11537

Addresses issues with incorrect DOMContainer positioning when the canvas is scaled.

Introduces CanvasTransformSync to manage the DOM element's transform based on canvas size and position, utilizing
ResizeObserver for efficient updates. Uses a fallback to the Ticker is ResizeObserver is not found (been supported since 2020)

Ensures correct scaling and translation of DOM elements relative to the canvas, resolving discrepancies in rendering.

Addresses issues with incorrect DOMContainer positioning
when the canvas is scaled.

Introduces CanvasTransformSync to manage the DOM element's
transform based on canvas size and position, utilizing
ResizeObserver for efficient updates. Uses a fallback to the Ticker is ResizeObserver is not found (been supported since 2020)

Ensures correct scaling and translation of DOM elements
relative to the canvas, resolving discrepancies in rendering.
Copy link

codesandbox-ci bot commented Jul 15, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8b61857:

Sandbox Source
pixi.js-sandbox Configuration

@Zyie Zyie force-pushed the fix/dom-scaling branch from ad420c7 to 9b73f10 Compare July 22, 2025 12:40
@Zyie Zyie added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Jul 22, 2025
@Zyie Zyie added this pull request to the merge queue Jul 22, 2025
Merged via the queue into dev with commit 780807f Jul 22, 2025
5 checks passed
@Zyie Zyie deleted the fix/dom-scaling branch July 22, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: DOMContainer scaling breaks if canvas width/height is percentage
3 participants