From d5c1cd6653893cf1056ec5f76399f7ee4f37de75 Mon Sep 17 00:00:00 2001 From: dscyrescotti Date: Wed, 26 Jun 2024 10:18:47 +0700 Subject: [PATCH] feat: remove step limit in stroke drawing --- Memola/Canvas/Contexts/GraphicContext.swift | 3 --- 1 file changed, 3 deletions(-) diff --git a/Memola/Canvas/Contexts/GraphicContext.swift b/Memola/Canvas/Contexts/GraphicContext.swift index 101cd77..e07f3aa 100644 --- a/Memola/Canvas/Contexts/GraphicContext.swift +++ b/Memola/Canvas/Contexts/GraphicContext.swift @@ -251,9 +251,6 @@ extension GraphicContext { func appendStroke(with point: CGPoint) { guard let currentStroke = currentElement?.stroke() else { return } - guard let currentPoint, point.distance(to: currentPoint) > currentStroke.thickness * currentStroke.penStyle.stepRate else { - return - } currentStroke.append(to: point) self.currentPoint = point }