Do not register drag and scale for Undo

Only add paths when it was not a multi touch in order to exclude scale and drag for undo/redo functionality
This commit is contained in:
Paul Akhamiogu 2021-12-20 23:38:43 +00:00
parent 8da051ce1c
commit 17f6e8067d
1 changed files with 1 additions and 1 deletions

View File

@ -253,9 +253,9 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
mPath.lineTo(mCurX + 1, mCurY + 2)
mPath.lineTo(mCurX + 1, mCurY)
}
mPaths[mPath] = mPaintOptions
}
mPaths[mPath] = mPaintOptions
pathsUpdated()
mPath = MyPath()
mPaintOptions = PaintOptions(mPaintOptions.color, mPaintOptions.strokeWidth, mPaintOptions.isEraser)