Closed mohammadius closed 9 months ago
@mohammadius, could you provide the codesandbox that reproduces this issue? Do you encounter this trouble in the documentation examples?
@Norserium well, that's the problem, I can't reproduce the problem in CodeSandBox. i have tried to do it in here, it's basically what i have in my own project. i have the cropper inside a popup and i'm rendering that with createPortal, could that cause a problem? and i have to use createPortal, for now at least.
@mohammadius, could you reproduce in the codesandbox the using of createPortal
?
okay, so the problem was kind of a miscommunication issue with my team. the problem was that there was another component rendering in the background that had mouse event listeners on document, and in those event listeners they had called preventDefault and stopPropagation on the event and one or both of them (probably stopPropagation) caused the cropper handles to not get the mouse events. calling any of those methods in those listeners were unnecessary anyways, so removing them fixed the problem.
@mohammadius, all's well that ends well!
Hi, I'm trying to use react-advanced-cropper in my web application but my problem is that resizing the crop box with mouse doesn't work. resizing, moving and zooming does work with touch input and also zooming works with mouse scroll wheel. i've tested it with version 0.19.4 and 0.19.3. i'm giving the Cropper a base64 image and that's it.no onChange listeners or ref or states.