usuiat / Zoomable

Jetpack Compose library that enables contents zooming with pinch gesture.
https://usuiat.github.io/Zoomable/
Apache License 2.0
408 stars 20 forks source link

detects wrong taps on zoomable LazyList when scrolling #207

Open mrnektom opened 5 months ago

mrnektom commented 5 months ago
@Composable
fun ZoomableLazyColumn() {
    LazyColumn(
        modifier = Modifier
            .fillMaxSize()
            .zoomable(
                rememberZoomState(),
                onTap = {
                    Log.d(TAG, "Tap")
                }
            )
    ) {
        items(50) {
            Box(
                modifier = Modifier
                    .fillMaxWidth()
                    .height(100.dp)
            )
        }
    }
}