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

Get the current scale/zoom level? #49

Open
mccahan opened this issue Mar 24, 2024 · 4 comments
Open

Get the current scale/zoom level? #49

mccahan opened this issue Mar 24, 2024 · 4 comments

Comments

@mccahan
Copy link

mccahan commented Mar 24, 2024

Is there a good way to be able to read the current scale whenever I need to? I don't see it on the ref, and I do see that there's a scale = useSharedValue() in the instance but can't find a way to get at it. I have a few places where I would like to be able to read out the current scale (and probably the x and y offsets), so I can save them for later.

I have a PR in for adding the scale to the onPinchEnd callback as a potential fix for one of my specific issues, but putting this note in in case there's a good way to accomplish this now that I'm missing.

@ghmendonca
Copy link

I also need this feature, @likashefqet any chance you can merge and release this?

@CrowsVeldt
Copy link

I could use this as well

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

@github-actions github-actions bot added the Stale label Jun 11, 2024
@2xSamurai
Copy link

I too really want this feature. Any way we can achieve this?

@github-actions github-actions bot removed the Stale label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants