             if (_dragEnabled != newValue)
             {
                 _dragEnabled = newValue;
-                if (_dragEnabled)
-                {
-                    self.addGestureRecognizer(_panGestureRecognizer);
-                }
-                else
-                {
-                    if (self.gestureRecognizers != nil)
-                    {
-                        for (var i = 0; i < self.gestureRecognizers!.count; i++)
-                        {
-                            if (self.gestureRecognizers?[i] === _panGestureRecognizer)
-                            {
-                                self.gestureRecognizers!.removeAtIndex(i);
-                                break;
-                            }
-                        }
-                    }
-                }
             }
         }
     }

                
                recognizer.setTranslation(CGPoint(x: 0.0, y: 0.0), inView: self);
            }
        }
    }
    

        return doubleTapToZoomEnabled;
    }
    
    /// flag that indicates if highlighting per dragging over a fully zoomed out chart is enabled
    public var highlightPerDragEnabled = true
    
    /// If set to true, highlighting per dragging over a fully zoomed out chart is enabled
    /// :default: true
    public var isHighlightPerDragEnabled: Bool
    {
        return highlightPerDragEnabled;
    }
    
    /// if set to true, the highlight indicator (lines for linechart, dark bar for barchart) will be drawn upon selecting values.
    public var highlightIndicatorEnabled = true
    
    /// If set to true, the highlight indicator (vertical line for LineChart and
    /// ScatterChart, dark bar overlay for BarChart) that gives visual indication
    /// that an Entry has been selected will be drawn upon selecting values. This
    /// does not depend on the MarkerView.
    /// :default: true
    public var isHighlightIndicatorEnabled: Bool
    {
        return highlightIndicatorEnabled;
    }
    
    /// :returns: true if drawing the grid background is enabled, false if not.
    /// :default: true
    public var isDrawGridBackgroundEnabled: Bool
