fengyuanchen / cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
MIT License
7.75k stars 1.74k forks source link

Crop area isn't aligned to cursor if cursor leaves the boundaries #866

Closed johnBrink closed 7 years ago

johnBrink commented 7 years ago

Tested on Chrome 56 on Windows 10. This happens in my app and in the cropper demo page.

If I drag the crop selection around, and my cursor leaves the cropper boundary, then the selection will continue to move around in the same direction as the cursor. If I move the cursor back over the cropper's boundary, then the selection will still be offset from the cursor.

Rather than moving in the same direction as the cursor is moving, can the selection area instead try to stay underneath the cursor (while still being constrained by the image's boundaries)?

drag issue

fengyuanchen commented 7 years ago

It is designed as this.