         transform3D.m34 = -1 / transform3Dm34D
         webViewHeightConstraint.constant = SCREEN_WIDTH * 2
         webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, SCREEN_WIDTH * 2 - SCREEN_HEIGHT, 0)
+        let webViewPan = UIPanGestureRecognizer(target: self, action: "handleWebPanGesture:")
+        webViewPan.delegate = self
+        webView.addGestureRecognizer(webViewPan)
+        panWebView = webViewPan
+    }
+    
+    func handleWebPanGesture(recognizer:UIPanGestureRecognizer) {
+        if recognizer.state == UIGestureRecognizerState.Began {
+            webView.scrollView.panGestureRecognizer.enabled = false
+        }else if recognizer.state == UIGestureRecognizerState.Changed && webView.scrollView.panGestureRecognizer.enabled == false {
+        }else if (recognizer.state == UIGestureRecognizerState.Cancelled || recognizer.state == UIGestureRecognizerState.Ended) && webView.scrollView.panGestureRecognizer.enabled == false{
+            webView.scrollView.panGestureRecognizer.enabled = true
+        }
     }
     
     func handleNewsPanGesture(recognizer:UIPanGestureRecognizer) {

            + asin((locationInSelf.y - newsViewY) / transform3Dm34D)
    }
    private var webViewRequest:NSURLRequest {
        return NSURLRequest(URL: NSURL(string: "https://github.com/allsome")!)
    }
    var unfoldWebViewOption:(() -> Void)?
    var foldWebViewOption:(() -> Void)?

    @IBOutlet weak var webView: UIWebView!
    
    private var panNewsView:UIPanGestureRecognizer = UIPanGestureRecognizer()
    private var panWebView:UIPanGestureRecognizer = UIPanGestureRecognizer()

    private var topLayer:CALayer = CALayer()
    private var bottomLayer:CALayer = CALayer()
    private var locationInSelf:CGPoint = CGPointZero
