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

[SuperEditor][Android] Fix magnified area (Resolves #1957) #1990

Merged
merged 1 commit into from May 13, 2024

Conversation

angelosilvestre
Copy link
Collaborator

@angelosilvestre angelosilvestre commented May 9, 2024

[SuperEditor][Android] Fix magnified area (Resolves #1957)

On some Android devices, the magnified area is wrong:

Screenshot_1713780723

This is caused because we use a magic number on the offset from focal point, which doesn't work for different pixel densities.

This PR fixes this issue by calculating the offset taking the pixel density into account.

pixel_3a.webm
pixel_7_pro.webm

#1973 should fix the issue for iOS

Copy link
Contributor

@matthew-carroll matthew-carroll left a comment

Choose a reason for hiding this comment

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

LGTM

@matthew-carroll matthew-carroll merged commit 9999b93 into main May 13, 2024
11 checks passed
@matthew-carroll matthew-carroll deleted the 1957_fix-magnified-area branch May 13, 2024 19:42
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.

magnifier magnifies the wrong area
2 participants