提交
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user