Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing DomElement position when camera zoom != 1 #6819

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 15, 2024

  1. Fixing DomElement position when camera zoom != 1

    When the camera zoom is set to any other value than one, if a dom element origin
    if set to anything other than 0, the final position of the DOM was incorrect.
    
    I traced this back to the DOMElementCSSRenderer.
    After some trial and error, I realized the translation needed to be applied after camera multiplication
    and not at the beginning.
    
    With this change, DOMElements are correctly positioned.
    moufmouf committed May 15, 2024
    Configuration menu
    Copy the full SHA
    0bcc71d View commit details
    Browse the repository at this point in the history