Cropper Selection limit boundaries within image behaves erratically at borders
Author: gloriousjobCreated Dec 12, 2025Updated Jul 25, 2026
Labelsenhancementv2documentation
Cropper version
2.1
Link to minimal reproduction
https://fengyuanchen.github.io/cropperjs/v2/api/cropper-selection.html#limit-boundaries
Steps to reproduce
- Select image for 'within' option
- Drag selection past right border, with mouse still held down.
- When mouse is moved up and down, selection moves as expected.
- However, if mouse is moved diagonally towards right, it does not move.
What is expected?
Compared to https://fengyuanchen.github.io/cropperjs/v1/, the same steps work smoothly (specifically step 4). Even though it is odd to be past the border and still move the box, the fact that it moves and worked well in v1 would lead to wanting it to work in v2.
What is actually happening?
When dragging box beyond the image border with image boundary limited, box sometimes moves and sometimes doesn't so it feels clunky.
System Info
Any additional comments?
No response
Source: fengyuanchen/cropperjs