Authored by 孟顺

解决wkwebview 时序 引起 定位不准问题

review by 枪兵
... ... @@ -247,10 +247,9 @@
#pragma mark - Gesture Handlers
- (void)hanldeTapGesture:(UITapGestureRecognizer *)gesture {
if (gesture == _tapGesture) {
CGPoint touchPoint = [gesture locationInView:self.webView];
CGFloat displayWidth = [[self.webViewController stringByEvaluatingJavaScriptFromString:@"window.innerWidth"] floatValue];
CGFloat scale = self.webView.frame.size.width / displayWidth;
CGPoint touchPoint = [gesture locationInView:self.webView];
// 如果webview是zoom状态,把对应的比例除去
touchPoint.x /= scale;
touchPoint.y /= scale;
... ...