             return true
         }
         
-        if scrollView.contentOffset.x >= CGRectGetWidth(view.bounds) || scrollView.contentOffset.x <= 0 {
-            return true
-        }
+//        if scrollView.contentOffset.x >= CGRectGetWidth(view.bounds) || scrollView.contentOffset.x <= 0 {
+//            return true
+//        }
         
         return false
     }

        let doubleTap = UITapGestureRecognizer(target: self, action: #selector(didReceiveDoubleTap(_:)))
        doubleTap.numberOfTapsRequired = 2
        self.view.addGestureRecognizer(doubleTap)
    }

    override func didReceiveMemoryWarning() {

            scrollView.setZoomScale(1.0, animated: true)
        } else {
            let center = gesture.locationInView(imageView)
            zoomToLocation(center, scale: scrollView.maximumZoomScale)
        }
    }

    @objc private func didReceivePinch(gesture : UIPinchGestureRecognizer) {
        switch gesture.state {
        case .Changed:
            pinchGestureDidChange(gesture)
        default:
            break
        }
    }

