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

Support onMove event or a method to get the coordinates of visible area #162

Open
Fsarmento opened this issue Jun 9, 2018 · 3 comments
Open

Comments

@Fsarmento
Copy link

This is more of a feature request.
I need to know the size and coordinates of the visible area of the picture to crop it using ImageEditor.

onScale event already gives the coordinates of the visible area and the zoom ratio applied to the photo. However, if the user drags the photo to a new position, there is no way to know the new position of the image.

This could be solved by adding an onMove event, or by adding a method to the class that would return the zoom ratio and coordinates of the visible area.

@minimaluminium
Copy link

@Fsarmento Have you found any solution for this yet?

@Fsarmento
Copy link
Author

Fsarmento commented Nov 11, 2018

Hi, I ended up using react-native-gesture-handler instead. You can check my example here

@minimaluminium
Copy link

Hi, I really appreciate your reply. Thanks, will give it a try :)

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

2 participants