fengyuanchen/cropperjs

Restricting allowed cropping area

Closed this issue · 1 comments

Can I implement somehow padding, which will restrict the area inside the image, which I can crop? Seems like adding CSS to some containers doesn't work. Implementation of cropMove event handling is shaky, especially on mobile, when I achieve the edges of the area.

As an example, let's imagine we cannot crop a bigger image than selected here https://fengyuanchen.github.io/cropperjs/

Duplicate of #981.