You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I have a modal (react-modal) attached to a parent iframe (via parentSelector).
Inside this modal I have the Cropper. The wheel event is working, while the cropping handles aren't working.
I think it is because the Cropper attaches events to the current window, while I should have them attached to the iframe document:
I think this could be done by adding a parentSelector prop to the Cropper component and, if there is a parentSelector, attaching the events to it, instead of window.
What do you think about it?
The text was updated successfully, but these errors were encountered:
Hi!
I have a modal (
react-modal
) attached to a parent iframe (viaparentSelector
).Inside this modal I have the
Cropper
. The wheel event is working, while the cropping handles aren't working.I think it is because the Cropper attaches events to the current window, while I should have them attached to the iframe document:
react-advanced-cropper/src/components/service/DraggableElement.tsx
Line 218 in 283ec19
I think this could be done by adding a
parentSelector
prop to theCropper
component and, if there is aparentSelector
, attaching the events to it, instead ofwindow
.What do you think about it?
The text was updated successfully, but these errors were encountered: