Github user acton393 commented on a diff in the pull request:

    https://github.com/apache/incubator-weex/pull/1093#discussion_r177999835
  
    --- Diff: ios/sdk/WeexSDK/Sources/Events/WXComponent+Events.m ---
    @@ -698,10 +732,41 @@ - (void)checkRemoveTouchGesture
         }
     }
     
    -#pragma mark - UIGestureRecognizerDelegate
    +- (void)gestureShouldStopPropagation:(UIGestureRecognizer 
*)gestureRecognizer shouldReceiveTouch:(UITouch *)touch
    +{
    +    NSString *ref = _templateComponent ? _templateComponent.ref : self.ref;
    +    CGPoint screenLocation = [touch locationInView:touch.window];
    +    CGPoint pageLocation = [touch 
locationInView:self.weexInstance.rootView];
    +    NSDictionary *resultTouch = [self 
touchResultWithScreenLocation:screenLocation pageLocation:pageLocation 
identifier:touch.wx_identifier];
    +    NSString *touchState;
    +    if (touch.phase == UITouchPhaseBegan) {
    +        touchState = @"start";
    +    }
    +    else if (touch.phase == UITouchPhaseMoved){
    +        touchState = @"move";
    +    }
    +    else{
    +        touchState = @"end";
    +    }
    +    BOOL stopPropagation = [[WXEventManager 
sharedManager]stopPropagation:self.weexInstance.instanceId ref:ref 
type:@"stopPropagation" params:@{@"changedTouches":resultTouch ? @[resultTouch] 
: @[],@"action":touchState}];
    +    touch.wx_stopPropagation = stopPropagation ? @1 : @0;
    +}
     
    +#pragma mark - UIGestureRecognizerDelegate
     - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer 
shouldReceiveTouch:(UITouch *)touch
     {
    +    CGPoint screenLocation = [touch locationInView:touch.window];
    +    NSLog(@"%@",NSStringFromCGPoint(screenLocation));
    --- End diff --
    
    NSLog is not recommended here, you can use  WXLog combined with its 
loglevel 


---

Reply via email to