Closed dotherightthing closed 1 year ago
initDelay prevents an error caused by displayFocalpoint firing before the cropper has been injected.
initDelay
displayFocalpoint
This error would be caused by:
resetFocalpoint > displayFocalpoint > calcPageXYFromImageXY > calcCanvasOffsets > getOffset
A better solution may be to add an observer to determine that the cropper has actually been injected.
Unless cropperjs has a callback?
initDelay
prevents an error caused bydisplayFocalpoint
firing before the cropper has been injected.This error would be caused by:
resetFocalpoint > displayFocalpoint > calcPageXYFromImageXY > calcCanvasOffsets > getOffset
A better solution may be to add an observer to determine that the cropper has actually been injected.
Unless cropperjs has a callback?