You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When maxZoom is set to >1 and the image is smaller than the cropbox the zoom in and out buttons do not work correctly. The "plus" button zooms out and the "minus" button zooms in (reversed functions).
In the JsFiddle above, the supplied image is 300px high and the crop box is 350px high which results in a zoom percentage of 1.1666+. As we are allowing the user to zoom to 1.5, clicking the plus button should increase the percentage and clicking the minus button reduce the percentage (to the smallest amount allowed). Instead the buttons work in reverse.
Expected behavior: Clicking the zoom "plus" button, the image would zoom in (up) to the maxZoom amount of 1.5. Instead the zoom "minus" button actually zooms in to maxZoom.
If the image is larger than cropbox, the issue does not occur.
Any help very much appreciated.
Thanks.
The text was updated successfully, but these errors were encountered:
See this JsFiddle
When maxZoom is set to >1 and the image is smaller than the cropbox the zoom in and out buttons do not work correctly. The "plus" button zooms out and the "minus" button zooms in (reversed functions).
In the JsFiddle above, the supplied image is 300px high and the crop box is 350px high which results in a zoom percentage of 1.1666+. As we are allowing the user to zoom to 1.5, clicking the plus button should increase the percentage and clicking the minus button reduce the percentage (to the smallest amount allowed). Instead the buttons work in reverse.
Expected behavior: Clicking the zoom "plus" button, the image would zoom in (up) to the maxZoom amount of 1.5. Instead the zoom "minus" button actually zooms in to maxZoom.
If the image is larger than cropbox, the issue does not occur.
Any help very much appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: