cropper.js icon indicating copy to clipboard operation
cropper.js copied to clipboard

Problems with scroll

Open joelsedano opened this issue 10 months ago • 3 comments

I'm making a page where the canvas is somewhere in the middle of the page, after some vertical scroll you can now upload an image, but the box to select the area to cut is not responsive, works well when the canvas is somewhere in the beginning of the page, but no if you have to do some scroll, I was trying to fix this problem myself in the isInHandle() function but without luck.

joelsedano avatar Apr 17 '24 18:04 joelsedano

Hey Joel, I reckon you might be better off using a library like https://github.com/fengyuanchen/cropperjs which looks like it's more recently updated and has more features.

oscarkey avatar Apr 20 '24 16:04 oscarkey

That think is overkill for what I want, but don't worry, i'm gonna try to fix it myself, i'm gonna take this as a challenge, best regards!

joelsedano avatar Apr 20 '24 22:04 joelsedano

Feel free to submit a pull request if you work it out. I also remembered this, maybe it will help: https://github.com/oscarkey/cropper.js/pull/6

oscarkey avatar Apr 22 '24 09:04 oscarkey