-
Notifications
You must be signed in to change notification settings - Fork 548
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
Example for getting pixel location on image, on onTap #546
Comments
I have figured it out, depending on the image ratio vs available screen ratio, there can be either in width or height some empty space that needs to be taken into account.
|
After good night of sleep I found some errors and refactored to this solution.
Maybe this method can be added as a static (helper) method on the controler? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I'm using the PhotoView.customChild with a background image and a customPaint (stacked) over it.
This is wrapped in a Listener to have scrolling with the mousewheel.
That is working great, love the performance and flexibility of your solution!
I'm now struggling however to get the pixel location on the image from an onTap event.
I tried lots of ways, but don't seem to get the correct coords.
Is there any documentation or example on this that could help me?
Thanks in advance!
The text was updated successfully, but these errors were encountered: