dotnet / dotnet/docs-maui

Docu: Pinch and Pan Gesture > Image moves in opposite Direction

Open
#2,844 0 comments 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-maui/subsvc dotnet-mobile/svc Pri2
Dominant language
No language data
Stars
282
Forks
265
Avg merge
2d 2h
Merged PRs (30d)
19

Description

### Type of issue

Code doesn't work

### Description

Dear Maui team

Thanks for you code regarding the "pinch container".

As I noticed, when pinching the image and at the same time move the fingers around (pinch+pan), the image moves in the opposite direction than expected. At least as when compared with how it natively works on iOS/Android.

And when you already zoomed in on the image and then start with pinch+pan, the image only moves very slowly.

The normal Pan is a different story. If additionally needed for an image, I guess one could just use the PanContainer for that as described in another article.

I hope you can correct the code accordingly, because I've been looking for such a code for a long time. And I think other developers would also like a snipped that mimics the zooming of an image like how it works natively on iOS/Android.

P.S.: I tested the code on iOS. On Android, it seems that the code doesn't support pinch+pan very well. Sometimes the image doesn't move on Android and sometimes it moves, but very laggy.

Kind Regards + Many Thanks!
Marco

### Page URL

https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/gestures/pinch?view=net-maui-9.0

### Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/fundamentals/gestures/pinch.md

### Document Version Independent Id

6fcfe4a4-609c-8151-6c35-f45d4123a6ac

### Platform Id

1e770776-9c85-f416-f782-2b0c8ac5191e

### Article author

@davidbritch

### Metadata

* ID: 6fcfe4a4-609c-8151-6c35-f45d4123a6ac
* PlatformId: 1e770776-9c85-f416-f782-2b0c8ac5191e
* Service: **dotnet-mobile**
* Sub-service: **dotnet-maui**

[Related Issues](https://github.com/dotnet/docs-maui/issues?q=is%3Aissue+is%3Aopen+6fcfe4a4-609c-8151-6c35-f45d4123a6ac)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.