mutualmobile/MMDrawerController — pull request #169 by drhr (2013-11-09 22:08:08+00:00)
Title: Tweaked translation amount so stretch doesn't leave empty space

I noticed a problem with the way the stretch translation was working. It was overshooting too far and leaving some blank space. This fix solved that issue for me, so now the stretch transformation keeps the side view controller anchored to the edge of the screen and to the edge of the center view controller.

Now, it's dividing the visiblePercentage out of the translation, along with the '2' that you were using. There might be a better way to do this altogether, but I'm not exactly sure. The transformation order seems correct (scale => translate), but I can't spend much more time on this, maybe you or someone else will see this and immediately know the answer.

*** NOTE ***
I didn't fully test all areas I changed here, so you might want to test my changed files individually. I made the same changes to a few other similar pieces of code, but it looks like the transformations are a little different in those spots. ANYWAY, the two areas I did test: A) Parallax mode in the KitchenSink demo. B) MMDrawerController's "applyOvershootScaleTransformForDrawerSide" in my own code.