Merge pull request #272 from Naveen3Singh/decrease_ff_tolerance

Decrease flood fill tolerance to 1
This commit is contained in:
Tibor Kaputa 2023-03-12 12:29:27 +01:00 committed by GitHub
commit ed1e6c9a9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import kotlin.math.min
class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) { class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
private val MIN_ERASER_WIDTH = 20f private val MIN_ERASER_WIDTH = 20f
private val MAX_HISTORY_COUNT = 1000 private val MAX_HISTORY_COUNT = 1000
private val FLOOD_FILL_TOLERANCE = 10 private val FLOOD_FILL_TOLERANCE = 1
private val mScaledTouchSlop = ViewConfiguration.get(context).scaledTouchSlop private val mScaledTouchSlop = ViewConfiguration.get(context).scaledTouchSlop