-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinch gesture on Android #802
Comments
Here's an example with Clocks demo edited to show the point where pinching is considered to happen and informing when panning is happening (even during a pinch)
|
Hi, Any update onthis. |
Hello! Please pay attention to file https://github.com/JetBrains/compose-multiplatform/blob/master/examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScalableImage.common.kt |
I am trying to implement pinch zoom in a KMM app, and while it works well on iOS, there are issues on Android. As you can see on the screenshot, MotionEvent has 2 points, but event.x and event.y value that's passed down to onGestureEvent are just the first point, instead of an average of both.
Also when pinching on Android I noticed I receive both Pinch and Pan events, whereas on iOS I only get Pinch events.
The text was updated successfully, but these errors were encountered: