Ateş Göral 🔥🐐 @ates.dev · Nov 9

Not a corner problem: One last piece of the puzzle is to prevent the crop rectangle from being shrunk beyond dimensions that would break the UX. To do this, the only thing we need to do is to clip the bounding rectangle:

0 likes 1 replies

?

Replies

Ateş Göral 🔥🐐 · Nov 9

"But so much math!" This is one of those problem domains where throwing conditional logic (e.g. a boatload of if statements) might have done the job.