Skip to content

Make detectZoomableGestures public #8

@TepesLucian

Description

@TepesLucian

Good job on the library first of all. My only request is making PointerInputScope.detectZoomableGestures inside Zoomable public dropping the internal modifier. My usecase involves supporting pinch to zoom of an image inside a fixed size LazyRow. LazyRow with fixed height unfortunately clips children beyond height + 30.dp according to https://issuetracker.google.com/issues/219687415 so the workaround I've found is applying Modifier.pointerInput(state) to the image composable inside LazyRow and having the Zoomable composable and a duplicate image composable with enabled set to false outside of everything basically reacting to state changes from the inner image composable. Copying the code inside my project solved the issue for now but it would be great to have the method public.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions