         
         if (self.panFromEdge && gestureRecognizer.isKindOfClass(UIPanGestureRecognizer) && !self.visible) {
             let point: CGPoint = touch.locationInView(gestureRecognizer.view)
-            if (point.x < 20.0 || point.x > self.view.frame.size.width - 20.0) {
+            if (point.x < self.panFromEdgeZoneWidth || point.x > self.view.frame.size.width - self.panFromEdgeZoneWidth) {
                 return true
             } else {
                 return false

    @IBInspectable public let contentViewStoryboardID: String? = nil
    @IBInspectable public let leftMenuViewStoryboardID: String? = nil
    @IBInspectable public let rightMenuViewStoryboardID: String? = nil
    @IBInspectable public var interactivePopGestureRecognizerEnabled: Bool = true
    @IBInspectable public var scaleContentView: Bool = true
    @IBInspectable public var fadeMenuView: Bool = true
    @IBInspectable public var scaleBackgroundImageView: Bool = true
    @IBInspectable public var scaleMenuView: Bool = true
    @IBInspectable public var contentViewShadowEnabled: Bool = false

        
        self.panGestureEnabled = true
        self.panFromEdge = true
        self.panFromEdgeZoneWidth = 20.0
        self.panMinimumOpenThreshold = 60.0
        
        self.contentViewShadowEnabled = false
