mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-04-24 01:28:40 +02:00
bug: keep active stroke drawing while it detects more fingers
This commit is contained in:
@@ -41,7 +41,7 @@ class DrawingView: UIView {
|
|||||||
|
|
||||||
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||||
super.touchesBegan(touches, with: event)
|
super.touchesBegan(touches, with: event)
|
||||||
if let count = event?.allTouches?.count, count > 1 {
|
if !canvas.hasValidStroke, let count = event?.allTouches?.count, count > 1 {
|
||||||
touchCancelled()
|
touchCancelled()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ class DrawingView: UIView {
|
|||||||
|
|
||||||
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
|
override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
|
||||||
super.touchesMoved(touches, with: event)
|
super.touchesMoved(touches, with: event)
|
||||||
if let count = event?.allTouches?.count, count > 1 {
|
if !canvas.hasValidStroke, let count = event?.allTouches?.count, count > 1 {
|
||||||
touchCancelled()
|
touchCancelled()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user