mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-04-02 21:01:14 +02:00
Merge pull request #217 from KryptKode/ref/exclude-scale-drag
Do not register drag and scale for Undo
This commit is contained in:
commit
f0f9c2d09c
@ -253,9 +253,9 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
|||||||
mPath.lineTo(mCurX + 1, mCurY + 2)
|
mPath.lineTo(mCurX + 1, mCurY + 2)
|
||||||
mPath.lineTo(mCurX + 1, mCurY)
|
mPath.lineTo(mCurX + 1, mCurY)
|
||||||
}
|
}
|
||||||
|
mPaths[mPath] = mPaintOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
mPaths[mPath] = mPaintOptions
|
|
||||||
pathsUpdated()
|
pathsUpdated()
|
||||||
mPath = MyPath()
|
mPath = MyPath()
|
||||||
mPaintOptions = PaintOptions(mPaintOptions.color, mPaintOptions.strokeWidth, mPaintOptions.isEraser)
|
mPaintOptions = PaintOptions(mPaintOptions.color, mPaintOptions.strokeWidth, mPaintOptions.isEraser)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user