     func closeRight() {
         self.slideMenuController()?.closeRight()
     }
+    
+    // Please specify if you want menu gesuture give priority to than targetScrollView
+    func addPriorityToMenuGesuture(targetScrollView: UIScrollView) {
+        if let slideControlelr = self.slideMenuController() {
+            let recognizers =  slideControlelr.view.gestureRecognizers
+            for recognizer in recognizers as [UIGestureRecognizer] {
+                if recognizer is UIPanGestureRecognizer {
+                    targetScrollView.panGestureRecognizer.requireGestureRecognizerToFail(recognizer)
+                }
+            }
+        }
+    }
 }


class SlideMenuController: UIViewController, UIGestureRecognizerDelegate {

    var opacityView = UIView()
    var mainContainerView = UIView()
    var leftContainerView = UIView()

        
    }
    
    struct rightPanState {
        static var frameAtStartOfPan: CGRect = CGRectZero
        static var startPointOfPan: CGPoint = CGPointZero
        static var wasOpenAtStartOfPan: Bool = false
        static var wasHiddenAtStartOfPan: Bool = false
    }
    
    func handleRightPanGesture(panGesture: UIPanGestureRecognizer) {
        
        if !self.isTagetViewController() {
