Resolves a bug for situations where programmatic swipes don't trigger a delegate callback.
In my project (Swift 2.0, Xcode 7.1) mdc_directionOfExceededThreshold is not returning a reliable value because mdc_viewState.originalCenter is always 0 when set and is only updated upon the pan gesture recogniser firing. I'm not sure why this is occurring (I'm using Autolayout, perhaps that's why?)
This small refactor fixes the bug and allows for more internal flexibility.
Resolves a bug for situations where programmatic swipes don't trigger a delegate callback.
In my project (Swift 2.0, Xcode 7.1) mdc_directionOfExceededThreshold is not returning a reliable value because mdc_viewState.originalCenter is always 0 when set and is only updated upon the pan gesture recogniser firing. I'm not sure why this is occurring (I'm using Autolayout, perhaps that's why?) This small refactor fixes the bug and allows for more internal flexibility.
Should also resolve #34
P.S Awesome Framework.