From 408662e63fc018d80503a2f5b5ab3feb53a74fba Mon Sep 17 00:00:00 2001 From: Roger Date: Fri, 24 Jul 2015 00:14:32 +0800 Subject: [PATCH] Update MMDrawerController.m --- MMDrawerController/MMDrawerController.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/MMDrawerController/MMDrawerController.m b/MMDrawerController/MMDrawerController.m index 4aec238b..5e9872f9 100644 --- a/MMDrawerController/MMDrawerController.m +++ b/MMDrawerController/MMDrawerController.m @@ -1202,14 +1202,12 @@ -(void)updateDrawerVisualStateForDrawerSide:(MMDrawerSide)drawerSide percentVisi - (void)applyOvershootScaleTransformForDrawerSide:(MMDrawerSide)drawerSide percentVisible:(CGFloat)percentVisible{ if (percentVisible >= 1.f) { - CATransform3D transform = CATransform3DIdentity; + transform = CATransform3DMakeScale(percentVisible, 1.f, 1.f); UIViewController * sideDrawerViewController = [self sideDrawerViewControllerForSide:drawerSide]; if(drawerSide == MMDrawerSideLeft) { - transform = CATransform3DMakeScale(percentVisible, 1.f, 1.f); transform = CATransform3DTranslate(transform, self.maximumLeftDrawerWidth*(percentVisible-1.f)/2, 0.f, 0.f); } else if(drawerSide == MMDrawerSideRight){ - transform = CATransform3DMakeScale(percentVisible, 1.f, 1.f); transform = CATransform3DTranslate(transform, -self.maximumRightDrawerWidth*(percentVisible-1.f)/2, 0.f, 0.f); } sideDrawerViewController.view.layer.transform = transform;