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