This commit is contained in:
edy
2026-07-17 10:26:37 +08:00
parent cc161eed88
commit 019da1589d
2 changed files with 57 additions and 10 deletions
@@ -1,7 +1,7 @@
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
#import <QuartzCore/QuartzCore.h>
#include "H5View.h"
extern UIView *UnityGetGLView(void);
@interface UIApplication (UnityTouchHook)
@@ -43,9 +43,13 @@ static Ivar g_ivarPrevLocation = NULL;
- (void)ut_sendEvent:(UIEvent *)event
{
// 1. 让系统和 WebView 先走正常响应
[self ut_sendEvent:event];
if (![[H5View shared] GetThrough]) {
return;
}
if (event.type != UIEventTypeTouches)
return;