CEWendel/SWTableViewCell — pull request #88 by Alex9779 (2014-02-14 19:29:49+00:00)
Title: return if there is no target content offset

Hi,

this is a fix for a problem when using SWTableViewCell with buttons on only one side.
I am using SWTableViewCell in my app always even when I only want to show a delete button because I want to have a seamless user experience.
Short example: you have a SWTableVIewCell with one button on the right side and none on the left and then swipe that cell very fast to the right the content just bounces. When you then try to scroll the same cell to the left side the cell shows a very short time the button but pops back. This is very hard to reproduce in the simulator on a device it is a bit easier but does not really appear every time.
The problem is that the fast dragging triggers some methods and the end is that "kCellStateLeft" is set even there are not buttons on the left side and the cell still shows its center.
My solution is simple, I just return right away if the target content offset is "(0, 0)".

Regards,
Alexander