[notch offset] ok, we should take left insets only

This commit is contained in:
Duy Tran Khanh authored and GitHub committed 2021-05-26 20:41:49 +07:00
1 parent cb425a4474
commit cddd176a27
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ int notchOffset;
savedHeight = roundf(height * screenScale);
// get both left and right for just in case orientation is changed
notchOffset = insets.left + insets.right;
notchOffset = insets.left;
width = width - notchOffset * 2;
touchView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, height)];