     public func setMinMaxScaleX(minScaleX minScaleX: CGFloat, maxScaleX: CGFloat)
     {
         var newMin = minScaleX
+        var newMax = minScaleY
         
         if (newMin < 1.0)
         {
             newMin = 1.0
+        }
+        if (newMax == 0.0)
+        {
+            newMax = CGFloat.max
         }
         
         _minScaleX = newMin

    /// Sets the maximum scale factor for the x-axis
    public func setMaximumScaleX(xScale: CGFloat)
    {
        _maxScaleX = xScale
        
        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)
    }

    /// Sets the maximum scale factor for the y-axis
    public func setMaximumScaleY(yScale: CGFloat)
    {
        var newValue = yScale
        
        if (newValue == 0.0)
        {
            newValue = CGFloat.max
        }
        
        _maxScaleY = newValue
        
        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)
    }
