Android75
Box(modifier = modifier .alpha(1.0f) .pointerInteropFilter { if (enableClick) { when (it.action) { MotionEvent.ACTION_DOWN -> { colorMatrixFilter = saturationOff } MotionEvent.ACTION_MOVE -> {} MotionEvent.ACTION_UP -> { colorMatrixFilter = saturationOn onClickImage(toothInDenture) } MotionEvent.ACTION_CANCEL -> { colorMatrixFilter = saturationOn } else -> true } } true }
A modern programming language that makes developers happier.