This commit is contained in:
2026-07-17 11:04:14 +08:00
parent 544f4b2d01
commit 25f3b9e1ab
27 changed files with 448 additions and 582 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;