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
lets say I have three images.
image1 , w=400, h=200
image2 , w=400, h=205
image3, w=400, h=400
if I feed each into a cropbox like this
$('myimage').cropbox({
width: 200,
height: 200,
zoom:10,
maxZoom:10
}).on('cropbox', function(e, data) {
console.log('crop window: ' + data);
});
image3 will zoomIn/zoomOut with a reasonable speed.
image1 wont zoomIn/zoomOut at all.
image2 will zoomIn/zoomOut veeeeeeeery slowly
Theres something not right with the zoom % calculation,
such that if the cropbox height is the same as the image height, it cant be zoomed.
hope you can help.
Cheers.
The text was updated successfully, but these errors were encountered:
jeacott
changed the title
zoom steps is dependent on the height
if the cropbox height is the same as the image height, it cant be zoomed.
Apr 17, 2014
it seems like when the image is smaller than the width/height dimension in the plugin, zoom controls are reversed / partially broken. here's a jsfiddle that demonstrates: http://jsfiddle.net/5WLmj/
lets say I have three images.
image1 , w=400, h=200
image2 , w=400, h=205
image3, w=400, h=400
if I feed each into a cropbox like this
$('myimage').cropbox({
width: 200,
height: 200,
zoom:10,
maxZoom:10
}).on('cropbox', function(e, data) {
console.log('crop window: ' + data);
});
image3 will zoomIn/zoomOut with a reasonable speed.
image1 wont zoomIn/zoomOut at all.
image2 will zoomIn/zoomOut veeeeeeeery slowly
Theres something not right with the zoom % calculation,
such that if the cropbox height is the same as the image height, it cant be zoomed.
hope you can help.
Cheers.
The text was updated successfully, but these errors were encountered: