Browse Source

Remove comments in ImageViewer Scalable.

pull/397/head
Roman Sedaikin 4 years ago
parent
commit
da611b319d
  1. 2
      examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/view/Scalable.kt

2
examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/view/Scalable.kt

@ -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
}

Loading…
Cancel
Save