mirror of
https://github.com/wu736139669/Monkey-Test.git
synced 2026-08-05 05:55:46 +00:00
fix bug
This commit is contained in:
@@ -46,11 +46,11 @@
|
||||
if (!CGRectIntersectsRect(frame, screenFrame)) {
|
||||
return NO;
|
||||
}
|
||||
CGPoint midPoint = [self.suggestedHitpoints.lastObject CGPointValue];
|
||||
XCElementSnapshot *hitElement = [self hitTest:midPoint];
|
||||
if (self == hitElement || [self._allDescendants.copy containsObject:hitElement]) {
|
||||
return YES;
|
||||
}
|
||||
// CGPoint midPoint = [self.suggestedHitpoints.lastObject CGPointValue];
|
||||
// XCElementSnapshot *hitElement = [self hitTest:midPoint];
|
||||
// if (self == hitElement || [self._allDescendants.copy containsObject:hitElement]) {
|
||||
// return YES;
|
||||
// }
|
||||
FBElementHitPoint *hitPoint = [self fb_hitPoint:nil];
|
||||
if (hitPoint != nil && CGRectContainsPoint(appFrame, hitPoint.point)) {
|
||||
return YES;
|
||||
|
||||
Reference in New Issue
Block a user