Closed Gregg8 closed 12 months ago
There is the issue to support ondrop/ondragover in in-content add-in on webview2. Working with webview2 team to see if there is workable solution. @Gregg8, as alternative solution, could you build similar experience through mouse event?
Thanks @Dengshan2018. Yes, we are looking into simulating drag/drop in our code, as jQuery does.
The components in our add-in which make use of the browser drag/drop events currently don't work. The drag doesn't even start. It appears as if drag/drop is disabled in add-ins.
Your Environment
Expected behavior
92.0.902.84
(which is the same version as the installed WebView2).Current behavior
ondragstart
event fires.ondragover
,ondrop
andondragend
events being fired as you drag around, it immediately fires anondragend
event which cancels the operation.Steps to reproduce
The simplest example I could come up with is the drag/drop demo in W3Schools:
https://www.w3schools.com/html/html5_draganddrop.asp
Open this in your browser, and you'll see you can drag and drop the W3Schools logo from one box to another.
I created an add-in manifest which points to this url.
Steps:
Trusted Add-in Catalogs
directoryContext
Related
I see a very recent similar issue here: #2059.
However, apart from being PowerPoint and making use of the MS Web Viewer add-in, other differences include: