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:
parent
8da051ce1c
commit
17f6e8067d
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue