diff --git a/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt b/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt index 224f57ff..041c9070 100644 --- a/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt +++ b/photoeditor/src/main/java/ja/burhanrashid52/photoeditor/DrawingView.kt @@ -66,6 +66,7 @@ class DrawingView @JvmOverloads constructor( private fun createEraserPaint(): Paint { val paint = createPaint() paint.xfermode = PorterDuffXfermode(PorterDuff.Mode.CLEAR) + paint.strokeWidth = eraserSize return paint } @@ -220,4 +221,4 @@ class DrawingView @JvmOverloads constructor( visibility = GONE currentShapeBuilder = ShapeBuilder() } -} \ No newline at end of file +}