mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-07-09 06:15:11 +02:00
feat: remove step limit in stroke drawing
This commit is contained in:
@@ -251,9 +251,6 @@ extension GraphicContext {
|
|||||||
|
|
||||||
func appendStroke(with point: CGPoint) {
|
func appendStroke(with point: CGPoint) {
|
||||||
guard let currentStroke = currentElement?.stroke() else { return }
|
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)
|
currentStroke.append(to: point)
|
||||||
self.currentPoint = point
|
self.currentPoint = point
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user