Skip to content

Commit

Permalink
cancelsTouchesInView
Browse files Browse the repository at this point in the history
  • Loading branch information
JiDW committed Mar 9, 2016
1 parent 3960c2b commit 03efc33
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/ios/app/ThreeDeeTouch.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ - (void) isAvailable:(CDVInvokedUrlCommand *)command {

- (void) watchForceTouches:(CDVInvokedUrlCommand*)command {
ForceTouchRecognizer* forceTouchRecognizer = [[ForceTouchRecognizer alloc] initWithTarget:self action:nil];
[forceTouchRecognizer setCancelsTouchesInView:NO];
forceTouchRecognizer.callbackId = command.callbackId;
forceTouchRecognizer.commandDelegate = self.commandDelegate;
[self.webView addGestureRecognizer: forceTouchRecognizer];
Expand Down Expand Up @@ -151,31 +152,5 @@ - (void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
}
}
}

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{


NSLog(@"Touch started ios");


NSSet *allTouches = [event allTouches];
for (UITouch *touch in allTouches)
{


}

}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"Touch ended ios");

}

- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event {
NSLog(@"Touch cancelled ok lol");
[self touchesEnded:touches withEvent:event];
}
@end

0 comments on commit 03efc33

Please sign in to comment.