diff --git a/upload/static/js/common_extra.js b/upload/static/js/common_extra.js index 7c158abd2324b08b70b187f2373214bd4d94cc26..0380a645c29a11123cc51a2ba28874c3e8ef520a 100644 --- a/upload/static/js/common_extra.js +++ b/upload/static/js/common_extra.js @@ -432,7 +432,7 @@ function _zoom(obj, zimg, nocover, pn, showexif) { ratio = step/ele.height; ele.height += step; ele.width = imgw*(ele.height/imgh); - } else if(imgw < imgh) { + } else { ratio = step/ele.width; ele.width += step; ele.height = imgh*(ele.width/imgw);