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

Delete Math.ceil and Math.floor for __ scissorRect. #2705

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

rainyt
Copy link
Contributor

@rainyt rainyt commented Apr 30, 2024

In cases where the browser scaling ratio is very large, using Math.floor or Math.ceil will result in significant pixel errors, so it needs to be removed.

In cases where the browser scaling ratio is very large, using Math.floor or Math.ceil will result in significant pixel errors, so it needs to be removed.
@rainyt
Copy link
Contributor Author

rainyt commented Apr 30, 2024

Old:
image

New:
image

@joshtynjala
Copy link
Member

@rainyt Can you provide a simple project that reproduces the issue? Thanks!

@rainyt
Copy link
Contributor Author

rainyt commented May 10, 2024

@rainyt Can you provide a simple project that reproduces the issue? Thanks!

scissor_rect.zip
Yes,sure!

It needs to trigger a problem when the browser zooms in by 500%.

@rainyt
Copy link
Contributor Author

rainyt commented May 10, 2024

Error render on 500%
image

@joshtynjala
Copy link
Member

Perfect! I can reproduce at 500% zoom in Chrome. Thank you.

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.

None yet

2 participants