dropzone
dropzone copied to clipboard
DropZone not triggered over iFrame
I have an iFrame component and I wish to use DropZone - the onDrag and onDrop are not triggered.
Don't know if this is an enhancement, bug or an issue on how I created the iFrame:
html.IFrameElement _iframeElement;
_iframeElement = html.IFrameElement();
_iframeElement.id = iFrameId;
_iframeElement.allow = 'accelerometer; gyroscope;';
_iframeElement.allowFullscreen = true;
_iframeElement.src = initialVideo;
_iframeElement.style.border = 'none';
_iframeElement.style.cursor = 'auto';
_iframeElement.style.width = '100%';
_iframeElement.style.height = '100%';
// ignore: undefined_prefixed_name
ui.platformViewRegistry.registerViewFactory(iFrameId, (int viewId) => _iframeElement);
videoWidget = HtmlElementView(
key: key,
viewType: iFrameId,
);