-
Notifications
You must be signed in to change notification settings - Fork 24
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
Selected image is shifted #40
Comments
I'm not really familiar with this plugin, but you should figure out what coordinate system I think it might be in image coordinates, in which case you'll need to convert it to web coordinates before accessing the canvas directly. Furthermore, if you're on an HDPI screen (where the pixel density is anything other than 1) you'll need to compensate for that. For instance if your pixel density is 2, you'll need to multiply by 2 to get the actual canvas coordinates. To find the pixel density, use |
Have you solved it? I also encountered the same problem, how can I solve it? |
Try setting returnPixelCoordinates to false. Source: |
The selected image obtained is shifted as shown in images below.
The code I used is as follows:
The text was updated successfully, but these errors were encountered: