         
     }
     
-    private func moveSlideMenu(x: CGFloat, animated: Bool) {
+    private func moveSlideMenu(y: CGFloat, animated: Bool) {
         
         func mapValue(x: CGFloat, in_min: CGFloat, in_max: CGFloat, out_min: CGFloat, out_max: CGFloat) -> CGFloat
         {

            self.slideState = .Closing
        }
        
        if point.x == 0 {
            self.slideState = .Opened
            (self.slideMenuViewController as! FWSlideMenuViewController).progressFinished(.Opened)

        // Get our transparentLayer.
        let transparentLayer = self.activeChild?.view.layer.sublayers!.filter({$0.name == self.transparentLayerKey})[0]
        
        // Create the opacity animation function
        let basicAnimation = CABasicAnimation(keyPath: "opacity")
        basicAnimation.duration = 0.35
        basicAnimation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
        basicAnimation.fromValue = transparentLayer!.opacity
        
        // animate to 0 if closed; animate to 0.5 if opening
        if self.slideState == .Opened {
            basicAnimation.toValue = 0.5
            transparentLayer!.opacity = 0.5
