Open hhc87 opened 1 year ago
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.82.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.82.2. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
In fact, I have tried an earlier version, 1.6x, and also tried compiling the latest main version locally (2023-09-20), but they both have the same issue.
I have also encountered this problem. When there is another iframe in
I also encountered this problem on MacOS, when I use the src attribute of the iframe, the drag event does not take effect
Could you please help me clarify if there is a developer who can answer this question? It seems like this issue has not been followed up on, and I hope to receive a solution as soon as possible.
I have the same issue here (which I reported months ago, still unresolved). Would love to get a reply about it, thanks
Please, can anybody get back to us on this?
I also encountered it. Occasionally, it can take effect. In most cases, it doesn't take effect. I don't know what the effective mechanism is.
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
More Information
I am building a low-code plugin for VS Code that allows users to drag and drop components to build the basic layout of a web page. Currently, this functionality works perfectly fine in the Chrome browser.
However, when I tried to use a VS Code extension to make it work within the VS Code editor, I encountered some issues. Essentially, my extension creates a WebView with an iframe that loads an external website I created, which contains multiple drag-and-drop events.
I have seen similar issues reported in the issue tracker and the behavior seems to be exactly the same. Unfortunately, the problem has not been resolved and the issue has been closed. Therefore, I had to create a new issue seeking help from the development team.
There are two interesting observations so far:
The mentioned issue only occurs on macOS(both Apple silicon and intel). On Windows, everything works fine and I can trigger drag and drop events within the iframe of the WebView without any problems. (I haven't tested it on Linux since I don't have a Linux environment.)
When I directly include the entire external HTML code in the iframe of the WebView using the "srcdoc" approach, the drag and drop events work correctly as well. Based on my analysis, I suspect that this issue may be related to resource restrictions within VS Code WebView and file access. However, it's still unclear why it performs well on the Windows platform.
I have provided a simplified version of the VS Code plugin demo. In the "src/view" folder, there are two HTML files that use different iframe referencing modes: "srcdoc" and "src". I hope this can help the development team quickly identify the problem.
As a quick reference, here's how I'm creating the webview:
And,here's demo html with drag envent
Finally, I appreciate your response, and if necessary, I can provide more information or a demo to assist in resolving this issue.
Many Thanks.