Make crop editor usable #22

Merged
Aaron merged 27 commits from crop-editor into master 2020-12-30 20:06:17 +01:00
Showing only changes of commit 5344378333 - Show all commits

View File

@ -100,7 +100,7 @@ class CropEditor {
let sourceAspectRatio = source.naturalWidth / source.naturalHeight; let sourceAspectRatio = source.naturalWidth / source.naturalHeight;
// Cropping from the centre? // Cropping from the centre?
if (cropMethod === "c") { if (cropMethod === "c" || cropMethod === "s") {
// Crop vertically from the centre, using the entire width. // Crop vertically from the centre, using the entire width.
if (sourceAspectRatio <= cropAspectRatio) { if (sourceAspectRatio <= cropAspectRatio) {
this.crop_width.value = source.naturalWidth; this.crop_width.value = source.naturalWidth;