Skip to content

Commit

Permalink
[SuperEditor][Android] Fix magnified area (Resolves #1957) (#1990)
Browse files Browse the repository at this point in the history
  • Loading branch information
angelosilvestre authored and matthew-carroll committed May 13, 2024
1 parent 9449921 commit 6e0de1f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1750,11 +1750,7 @@ class SuperEditorAndroidControlsOverlayManagerState extends State<SuperEditorAnd
child: AndroidMagnifyingGlass(
key: magnifierKey,
magnificationScale: 1.5,
// In theory, the offsetFromFocalPoint should either be `-150` to match the actual
// offset, or it should be `-150 / magnificationLevel`. Neither of those align the
// focal point correctly. The following offset was found empirically to give the
// desired results, no matter how high the magnification.
offsetFromFocalPoint: const Offset(0, -58),
offsetFromFocalPoint: Offset(0, -150 / MediaQuery.devicePixelRatioOf(context)),
),
),
);
Expand Down

0 comments on commit 6e0de1f

Please sign in to comment.