Make crop editor usable #22
@ -100,7 +100,7 @@ class CropEditor {
|
||||
let sourceAspectRatio = source.naturalWidth / source.naturalHeight;
|
||||
|
||||
// Cropping from the centre?
|
||||
if (cropMethod === "c") {
|
||||
if (cropMethod === "c" || cropMethod === "s") {
|
||||
// Crop vertically from the centre, using the entire width.
|
||||
if (sourceAspectRatio <= cropAspectRatio) {
|
||||
this.crop_width.value = source.naturalWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user