mirror of
https://github.com/dscyrescotti/Memola.git
synced 2026-05-20 22:57:07 +02:00
bug: sync pen drawing and stroke generating
This commit is contained in:
@@ -118,6 +118,14 @@ extension GraphicContext {
|
||||
self.currentPoint = nil
|
||||
delegate?.didUpdate.send()
|
||||
}
|
||||
|
||||
func cancelStroke() {
|
||||
if !strokes.isEmpty {
|
||||
strokes.removeLast()
|
||||
}
|
||||
currentStroke = nil
|
||||
currentPoint = nil
|
||||
}
|
||||
}
|
||||
|
||||
extension GraphicContext {
|
||||
|
||||
Reference in New Issue
Block a user