Merge pull request #217 from KryptKode/ref/exclude-scale-drag

Do not register drag and scale for Undo
This commit is contained in:
Tibor Kaputa 2021-12-24 12:14:01 +01:00 committed by GitHub
commit f0f9c2d09c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)