From d261fe97d3debeee28bb4086187a5a08847a0b28 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Fri, 19 Feb 2021 17:46:40 +0700 Subject: [PATCH] Stills fixing x offset of notch --- Natives/SurfaceViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Natives/SurfaceViewController.m b/Natives/SurfaceViewController.m index 1bf90268..36df21eb 100644 --- a/Natives/SurfaceViewController.m +++ b/Natives/SurfaceViewController.m @@ -78,9 +78,9 @@ int notchOffset; savedWidth = roundf(width * screenScale); savedHeight = roundf(height * screenScale); - width = width - insets.top; + width = width - insets.left - insets.right; height = height - insets.bottom; - notchOffset = insets.top; + notchOffset = insets.left; touchView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, height)];