Skip to content
Snippets Groups Projects
Commit da611b31 authored by Roman Sedaikin's avatar Roman Sedaikin
Browse files

Remove comments in ImageViewer Scalable.

parent 3097fa37
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.pointerInput
import example.imageviewer.style.Transparent
// TODO fix, it doesn't work
@Composable
fun Scalable(
onScale: ScaleHandler,
......@@ -33,7 +32,6 @@ class ScaleHandler(private val maxFactor: Float = 5f, private val minFactor: Flo
val factor = mutableStateOf(1f)
fun resetFactor() {
println("scale reset")
if (factor.value > minFactor)
factor.value = minFactor
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment