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

No zooming or dragging #37

Open
mohsinali1317 opened this issue Apr 28, 2014 · 3 comments
Open

No zooming or dragging #37

mohsinali1317 opened this issue Apr 28, 2014 · 3 comments

Comments

@mohsinali1317
Copy link

I am trying to zoom or drag the image using this plugin which is working very well.
But when when the user go next and then come to the previous step it doesn't work.
If you go this url http://pprdev.onjumpstarter.io/resapp/#/selectImage and upload the image I am attaching and then press next and then back you will see what I am trying to say.
5 issues

@acornejo
Copy link
Owner

I can confirm the website doesn't work on my computer either.

I would guess that the cropbox is either being created twice, but its hard to say. Too much code in that website for me to try to debug it. I would suggest creating a minimal non-working example in jsfiddle of a back/forward and I could take a look and fix it (if there is a bug of cropbox).

@mohsinali1317
Copy link
Author

I have managed to find the issue, when the height or width of the image is equal to or less then the cropbox height or width, respectively, then it cannot be zoomed. Can you help with how to fix that?

@acornejo
Copy link
Owner

Will take a look at this over the weekend. Of the top of my head, having the cropbox with LARGER dimensions than the actual image requires zooming the image beyond the pixel accuracy (i.e. the resulting croppped image will have lower quality).

Earlier versions of cropbox did not support this, but due to popular demand support for this feature was added and can be enabled by the maxZoom option (for instance, try 10.0 maxZoom).

That being said, I don't recommend this since there will be an unavoidable loss of quality, its better to warn the user and recommend he uses a larger image.

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