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)) {
|
if (!CGRectIntersectsRect(frame, screenFrame)) {
|
||||||
return NO;
|
return NO;
|
||||||
}
|
}
|
||||||
CGPoint midPoint = [self.suggestedHitpoints.lastObject CGPointValue];
|
// CGPoint midPoint = [self.suggestedHitpoints.lastObject CGPointValue];
|
||||||
XCElementSnapshot *hitElement = [self hitTest:midPoint];
|
// XCElementSnapshot *hitElement = [self hitTest:midPoint];
|
||||||
if (self == hitElement || [self._allDescendants.copy containsObject:hitElement]) {
|
// if (self == hitElement || [self._allDescendants.copy containsObject:hitElement]) {
|
||||||
return YES;
|
// return YES;
|
||||||
}
|
// }
|
||||||
FBElementHitPoint *hitPoint = [self fb_hitPoint:nil];
|
FBElementHitPoint *hitPoint = [self fb_hitPoint:nil];
|
||||||
if (hitPoint != nil && CGRectContainsPoint(appFrame, hitPoint.point)) {
|
if (hitPoint != nil && CGRectContainsPoint(appFrame, hitPoint.point)) {
|
||||||
return YES;
|
return YES;
|
||||||
|
|||||||
Reference in New Issue
Block a user