From d6eddefafa48a1381f2960238a48ef7b4becf0c2 Mon Sep 17 00:00:00 2001 From: dscyrescotti Date: Tue, 7 May 2024 11:14:10 +0700 Subject: [PATCH] bug: keep active stroke drawing while it detects more fingers --- Memola/Canvas/View/Bridge/Views/DrawingView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Memola/Canvas/View/Bridge/Views/DrawingView.swift b/Memola/Canvas/View/Bridge/Views/DrawingView.swift index e2312a9..f47077b 100644 --- a/Memola/Canvas/View/Bridge/Views/DrawingView.swift +++ b/Memola/Canvas/View/Bridge/Views/DrawingView.swift @@ -41,7 +41,7 @@ class DrawingView: UIView { override func touchesBegan(_ touches: Set, with event: UIEvent?) { super.touchesBegan(touches, with: event) - if let count = event?.allTouches?.count, count > 1 { + if !canvas.hasValidStroke, let count = event?.allTouches?.count, count > 1 { touchCancelled() return } @@ -52,7 +52,7 @@ class DrawingView: UIView { override func touchesMoved(_ touches: Set, with event: UIEvent?) { super.touchesMoved(touches, with: event) - if let count = event?.allTouches?.count, count > 1 { + if !canvas.hasValidStroke, let count = event?.allTouches?.count, count > 1 { touchCancelled() return }