From a010ac9a82af71022801fec9ece4ec12b23508d7 Mon Sep 17 00:00:00 2001 From: Eithan Shavit Date: Wed, 24 Dec 2014 11:02:17 -0800 Subject: [PATCH] Fixing a bug that can cause line breakage with slow finger movements --- Smooth Line View/SmoothLineView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Smooth Line View/SmoothLineView.m b/Smooth Line View/SmoothLineView.m index 3026661..f6ed127 100644 --- a/Smooth Line View/SmoothLineView.m +++ b/Smooth Line View/SmoothLineView.m @@ -135,7 +135,7 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { // update points: previousPrevious -> mid1 -> previous -> mid2 -> current self.previousPreviousPoint = self.previousPoint; - self.previousPoint = [touch previousLocationInView:self]; + self.previousPoint = self.currentPoint; self.currentPoint = [touch locationInView:self]; CGPoint mid1 = midPoint(self.previousPoint, self.previousPreviousPoint);