diff --git a/MMDrawerController/MMDrawerController.m b/MMDrawerController/MMDrawerController.m index 4aec238b..13f17a65 100644 --- a/MMDrawerController/MMDrawerController.m +++ b/MMDrawerController/MMDrawerController.m @@ -1208,7 +1208,7 @@ - (void)applyOvershootScaleTransformForDrawerSide:(MMDrawerSide)drawerSide perce transform = CATransform3DMakeScale(percentVisible, 1.f, 1.f); transform = CATransform3DTranslate(transform, self.maximumLeftDrawerWidth*(percentVisible-1.f)/2, 0.f, 0.f); } - else if(drawerSide == MMDrawerSideRight){ + else { transform = CATransform3DMakeScale(percentVisible, 1.f, 1.f); transform = CATransform3DTranslate(transform, -self.maximumRightDrawerWidth*(percentVisible-1.f)/2, 0.f, 0.f); }