Skip to content

Commit 2b5cff6

Browse files
committed
增加条件防止误判
1 parent bcc301b commit 2b5cff6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

DYYY.xm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4277,6 +4277,11 @@ static CGFloat DYYYDesiredMTKViewShiftOffset(UIView *view) {
42774277
if (!DYYYIsLandscapeVideoBounds(view.bounds.size)) {
42784278
return 0.0f;
42794279
}
4280+
CGFloat viewWidth = CGRectGetWidth(view.bounds);
4281+
CGFloat screenWidth = [UIScreen mainScreen].bounds.size.width;
4282+
if (viewWidth < screenWidth * 0.75f) {
4283+
return 0.0f;
4284+
}
42804285
CGFloat tabHeight = DYYYCurrentTabHeight();
42814286
if (tabHeight <= 0.0f) {
42824287
return 0.0f;

0 commit comments

Comments
 (0)