Skip to content
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

[Questions]: How to pan the layout after pinch two finger from SnapbackZoom #83

Open
risardi-lahelu opened this issue Jan 15, 2025 · 2 comments
Labels
question Further information is requested

Comments

@risardi-lahelu
Copy link

Summary

Hi, @Glazzes

Basically what I want to mimic is instagram feed post, where first zoom to pinch are use two finger then we can left one finger but still panning where ever we want. Here is the example

WhatsApp.Video.2025-01-15.at.10.44.05.mp4
@risardi-lahelu risardi-lahelu added the question Further information is requested label Jan 15, 2025
@Glazzes
Copy link
Owner

Glazzes commented Jan 15, 2025

Hi @risardi-lahelu, there are some limitations imposed by GH that I can not bypass with my implementation with uses .Race (first gesture will block the others), using .Simultaneous (All gesture can run at the same time) produces very strange results so I never used it.

What you want falls within what I'm capable to achieve, however to achieve this goal one needs to go completely manual with GH, basically convert x and y values given by the pointers into actual usable data like focalX, focalY, scale, translationX and translationY, to make it short one has to reinvent the wheel.

As of today I don't see myself reinventing this wheel, however I may in the future.

@risardi123
Copy link

The point you are mentioning are very valid for the behaviour on gesture.simultaneous. Allright then I need to look around and hope I can resolve it 🤞. Thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants